Menu

1 / 2

guard-install now scans GitHub repos before you run them

DEV Community·Nithin D J·7 months ago
#PsbKIShi
#npm#node#riskanalysis#software#github
Reading 0:00
15s threshold

Hey everyone,

I shared this earlier as a CLI to analyse npm packages before installing.

Since then, I’ve added something I think is even more useful:

👉 You can now scan GitHub repos before cloning or running them

npx guard-install --repo https://github.com/user/repo

Enter fullscreen mode

Exit fullscreen mode

Why this matters

There’s a growing pattern (especially in crypto interviews / side projects):

“Clone this repo and run it locally”

Some of these repos:

access environment variables

interact with wallets / keys

make outbound network calls

You don’t always notice what’s happening before you run the code.

What the repo scan does

Scans files (without executing anything)

Detects:

sensitive data patterns (PRIVATE_KEY, MNEMONIC)

crypto/wallet usage

network calls

shell execution

Combines signals → gives a risk level (LOW / MEDIUM / HIGH)

Explains why something might need review

Example

🔐 Sensitive data patterns found 💰 Cryptocurrency functionality 🌐 Network activity detected

Risk:…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.