Community-maintained threat detection rules for Flagrix — the security scanner for developers.
Identify malicious code, supply chain attacks, scam patterns, and suspicious GitHub profiles before you clone or collaborate.
| Path | Contents |
|---|---|
rules/github/repository.yaml |
YARA-style patterns: malware signatures, hardcoded secrets, backdoors, network exfiltration, social engineering |
rules/github/obfuscation.yaml |
Obfuscation technique detection (base64, hex, long lines, eval abuse) |
rules/github/user-profile.yaml |
Risk scoring weights + thresholds for GitHub account analysis (compiled into userProfileRules, consumed live by the scanner) |
packages/malicious-npm.yaml |
Confirmed malicious npm packages (Lazarus Group, typosquats) |
packages/malicious-pypi.yaml |
Confirmed malicious PyPI packages |
hashes/known-bad.yaml |
SHA-256 hashes of known malicious files |
On file hashes: Flagrix scanning is pattern-based (regex/YARA over source and dependencies), not hash-based, so
knownBadHashesis intentionally empty by default. The field exists in the schema for consumers that want to add hash IOCs.
The repository covers 13+ detection categories:
- Malware signatures — Lazarus/BeaverTail/InvisibleFerret APT patterns
- Obfuscated code — Base64, hex strings, eval abuse, long-line attacks
- Hardcoded secrets — AWS keys, GitHub tokens, Stripe keys, API keys
- Suspicious network — Discord webhooks, Telegram tokens, Pastebin URLs, ngrok tunnels
- Data exfiltration — Clipboard access, cookie theft, keyloggers, form data theft
- Backdoors — RCE endpoints, dynamic require, hardcoded auth bypass
- Supply chain attacks — Malicious postinstall scripts, executable downloads
- Suspicious file access — SSH/AWS credential reads, browser password DB access
- Crypto mining — CoinHive, stratum+tcp, XMRig, cryptonight patterns
- Code integrity — Minified code in source repos, missing license/README
- Social engineering — README urgency tactics, security bypass instructions
- Non-English comments — Detects non-English code comments (Lazarus indicator)
- User profile risk — Account age, follower patterns, activity analysis
The Flagrix extension fetches signatures.json from this repository every 6 hours. When you scan a GitHub repository or user profile, the extension matches your target against these rules locally in your browser — no data leaves your machine.
The signatures.json is compiled from the rule, package, and hash YAML files by running:
npm install
npm run buildFound a new malware package? Spotted a pattern not covered? See CONTRIBUTING.md.
Contributions need:
- Evidence linking to a public source (VirusTotal, CVE, security blog post)
- Tested against a real sample
npm run build && npm run validatepasses
This project leverages Claude AI for boilerplate generation, test-suite expansion, and optimization. All AI-generated code is strictly reviewed, refactored, and verified by human maintainers before merging.
MIT — use freely in your own security tools. Attribution appreciated.
Part of the Flagrix open-core security platform.