alexgreensh/repo-forensics / skills/repo-forensics
repo-forensics
FlaggedSecurity forensics for git repos, AI skills, and MCP servers. Audits dependencies, detects prompt injection, credential theft, runtime dynamism, manifest drift, known CVEs, CISA KEV (actively exploited) vulns, and 2026 attack patterns. Not for fixing vulnerabilities or pentesting.
data/yara/cryptominers.yar
View on GitHub// cryptominers.yar - curated cryptominer signatures for repo-forensics.
// Multi-string conjunctive conditions + filesize bounds. YR-* ids mirrored
// in data/yara/manifest.json. Author: Alex Greenshpun.
// License: PolyForm-Noncommercial-1.0.0.
rule Cryptominer_XMRig_Stratum
{
meta:
id = "YR-CRY-001"
severity = "high"
category = "cryptominer"
confidence = "0.90"
title = "XMRig / stratum cryptominer pool indicator"
strings:
$stratum = "stratum+tcp://" nocase
$stratum_ssl = "stratum+ssl://" nocase
$xmrig = "xmrig" nocase
$cn = "cryptonight" nocase
$pool = "pool.minexmr" nocase
$rx = "randomx" nocase
$rx0 = "\"rx/0\"" nocase
$pool_sxmr = "pool.supportxmr.com" nocase
$xmrpool = "xmrpool." nocase
$nanopool = "nanopool." nocase
$moneroocean = "moneroocean" nocase
$hashvault = "hashvault" nocase
condition:
// v2.13.1: accept stratum+ssl://, the quoted "rx/0" config form, and
// the common public Monero pool markers. Mining-ops docs (C-4 class)
// demote via prose-doc; pool lists in blocklists demote via
// is_blocklist (design §4 add #4).
filesize < 500KB and (1 of ($stratum, $stratum_ssl)) and (1 of ($xmrig, $cn, $rx, $pool, $rx0, $pool_sxmr, $xmrpool, $nanopool, $moneroocean, $hashvault))
}
rule Cryptominer_Coinhive_Browser
{
meta:
id = "YR-CRY-002"
severity = "medium"
category = "cryptominer"
confidence = "0.80"
title = "In-browser cryptominer (CoinHive / WASM wrapper)"
strings:
$coinhive = "coinhive.min.js" nocase
$ch = "CoinHive" nocase
$wasm = "CryptonightWASMWrapper" nocase
$worker = "cryptonight-worker" nocase
condition:
filesize < 500KB and 2 of ($coinhive, $ch, $wasm, $worker)
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |