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/rulepacks/secrets.json
View on GitHub{
"schema_version": "1.0",
"generated": "2026-06-10",
"pack": "secrets",
"pack_version": 1,
"rules": [
{
"id": "SC-KEY-001",
"type": "regex",
"pattern": "-----BEGIN ((EC|PGP|DSA|RSA|OPENSSH) )?PRIVATE KEY( BLOCK)?-----",
"title": "Private Key (RSA/PEM/EC/DSA/OPENSSH)",
"severity": "critical",
"confidence": 0.97,
"category": "private-key",
"attacker": "anyone with repo access",
"boundary": "source repository",
"asset": "asymmetric private key",
"explanation": "PEM private-key header committed in plaintext.",
"examples": {
"match": [
"-----BEGIN RSA PRIVATE KEY-----",
"-----BEGIN OPENSSH PRIVATE KEY-----",
"-----BEGIN EC PRIVATE KEY-----",
"-----BEGIN PRIVATE KEY-----"
],
"no_match": [
"-----BEGIN CERTIFICATE-----",
"# generate a private key with openssl"
]
}
},
{
"id": "SC-SEC-001",
"type": "regex",
"pattern": "(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}",
"title": "AWS Access Key ID",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"attacker": "anyone with repo access",
"boundary": "cloud IAM credentials",
"asset": "AWS access key",
"explanation": "AWS access key id with a known provider prefix.",
"examples": {
"match": [
"AWS_KEY = 'AKIANY4M7KQP9XJR2E3F'",
"AKIANY4M7KQP9XJR2E3F",
"ASIA1234567890ABCDEF"
],
"no_match": [
"AKIA short",
"akiaiosfodnn7example"
]
}
},
{
"id": "SC-SEC-002",
"type": "regex",
"pattern": "(?i)aws[^\\'\"\\n]{0,20}[\\'\"][0-9a-zA-Z/+]{40}[\\'\"]",
"title": "AWS Secret Access Key",
"severity": "high",
"confidence": 0.75,
"category": "secret",
"explanation": "AWS secret access key in a quoted assignment near an 'aws' keyword.",
"examples": {
"match": [
"aws_secret = 'abcdefghijklmnopqrstuvwxyz0123456789ABCD'",
"aws key 'wJalrXUtnFEMIK7MDENGbPxRfiCYEXAMPLEKEY12'",
"aws='abcdefghijklmnopqrstuvwxyz0123456789ABCD'"
],
"no_match": [
"aws region is us-east-1",
"secret = 'short'"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-003",
"type": "regex",
"pattern": "AIza[0-9A-Za-z\\\\-_]{35}",
"title": "Google API Key",
"severity": "high",
"confidence": 0.92,
"category": "secret",
"explanation": "Google API key with the AIza prefix.",
"examples": {
"match": [
"AIzaSyA1234567890abcdefghijklmnopqrstuvw",
"key = 'AIzaSyB1234567890abcdefghijklmnopqrstuv'",
"AIzaSyC0000000000000000000000000000000000"
],
"no_match": [
"AIza too short",
"GoogleApiKeyPlaceholder"
]
}
},
{
"id": "SC-SEC-004",
"type": "regex",
"pattern": "(?i)client_secret[^\\'\"\\n]{0,5}[\\'\"][a-zA-Z0-9_-]{24}[\\'\"]",
"title": "Google OAuth Client Secret",
"severity": "high",
"confidence": 0.75,
"category": "secret",
"explanation": "Google OAuth client_secret quoted assignment.",
"examples": {
"match": [
"client_secret = 'abcdefghijklmnopqrstuvwx'",
"CLIENT_SECRET: 'ABCDEFGHIJKLMNOPQRSTUVWX'",
"client_secret='1234567890abcdefghijklmn'"
],
"no_match": [
"client_secret = 'short'",
"no secret here"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-005",
"type": "regex",
"pattern": "(?i)(DefaultEndpointsProtocol|AccountKey|SharedAccessSignature)=[^\\s;]+",
"title": "Azure Connection String",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Azure storage/connection string with an account key.",
"examples": {
"match": [
"DefaultEndpointsProtocol=https;AccountName=x",
"AccountKey=abcdef123456==",
"SharedAccessSignature=sv=2020"
],
"no_match": [
"AccountName=onlyname",
"endpoints protocol is https"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-006",
"type": "regex",
"pattern": "(?i)azure[^\\'\"\\n]{0,20}(client_secret|secret)[^\\'\"\\n]{0,5}[\\'\"][a-zA-Z0-9~._-]{34,}[\\'\"]",
"title": "Azure AD Client Secret",
"severity": "high",
"confidence": 0.75,
"category": "secret",
"explanation": "Azure AD client secret in a quoted assignment.",
"examples": {
"match": [
"azure client_secret = 'abcdefghijklmnopqrstuvwxyz01234567'",
"AZURE_AD secret = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567~._-'",
"azure secret='abcdefghijklmnopqrstuvwxyz01234567'"
],
"no_match": [
"azure region is westus",
"client_secret short"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-007",
"type": "regex",
"pattern": "sk-[a-zA-Z0-9]{20,}",
"title": "OpenAI API Key",
"severity": "high",
"confidence": 0.9,
"category": "secret",
"explanation": "OpenAI-style sk- API key.",
"examples": {
"match": [
"sk-abcdefghijklmnopqrstuvwxyz123456789012345678",
"OPENAI_KEY = 'sk-proj1234567890abcdef0000'",
"sk-0000000000000000000000"
],
"no_match": [
"sk-tooshort",
"api key absent here entirely"
]
}
},
{
"id": "SC-SEC-008",
"type": "regex",
"pattern": "sk-ant-[a-zA-Z0-9]{20,}",
"title": "Anthropic API Key",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "Anthropic sk-ant- API key.",
"examples": {
"match": [
"sk-ant-abcdefghijklmnopqrstuvwxyz12",
"ANTHROPIC_API_KEY=sk-ant-api03abcdefghijklmnopqrst",
"sk-ant-0000000000000000000000"
],
"no_match": [
"sk-ant-short",
"sk-other-1234567890"
]
}
},
{
"id": "SC-SEC-009",
"type": "regex",
"pattern": "CODEX_API_KEY\\s*[=:]\\s*[\\'\"]?[A-Za-z0-9_\\-]{20,}",
"title": "Codex API Key (CODEX_API_KEY)",
"severity": "high",
"confidence": 0.9,
"category": "secret",
"explanation": "CODEX_API_KEY environment assignment with a token value.",
"examples": {
"match": [
"CODEX_API_KEY=codex_live_abcdefghijklmnopqrstuvwxyz123456",
"CODEX_API_KEY = 'abcdefghijklmnopqrst'",
"CODEX_API_KEY:abcdefghijklmnopqrst1"
],
"no_match": [
"CODEX_API_KEY=short",
"OTHER_API_KEY=abcdefghijklmnopqrst"
]
}
},
{
"id": "SC-SEC-010",
"type": "regex",
"pattern": "(sk_live_|pk_live_|rk_live_)[0-9a-zA-Z]{24,}",
"title": "Stripe API Key",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "Live Stripe secret/publishable/restricted key.",
"examples": {
"match": [
"sk_live_abcdefghijklmnopqrstuvwx",
"STRIPE = 'pk_live_abcdefghijklmnopqrstuvwx'",
"rk_live_0000000000000000000000001"
],
"no_match": [
"sk_test_abc",
"sk_live_short"
]
}
},
{
"id": "SC-SEC-011",
"type": "regex",
"pattern": "xox[baprs]-([0-9a-zA-Z]{10,48})",
"title": "Slack Token",
"severity": "high",
"confidence": 0.93,
"category": "secret",
"explanation": "Slack xox- API token.",
"examples": {
"match": [
"xoxb-1234567890-abcdefghijkl",
"xoxp-abcdefghij1234567890",
"TOKEN=xoxs-abcdefghijklmno"
],
"no_match": [
"xox-short",
"xoxz-1234567890"
]
}
},
{
"id": "SC-SEC-012",
"type": "regex",
"pattern": "https://hooks\\.slack\\.com/services/T[A-Z0-9]+/B[A-Z0-9]+/[a-zA-Z0-9]+",
"title": "Slack Webhook URL",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "Slack incoming-webhook URL with embedded token path.",
"examples": {
"match": [
"https://hooks.slack.com/services/T00000000/B00000000/abcdef123456",
"url = 'https://hooks.slack.com/services/TABC123/BDEF456/xyz789'",
"https://hooks.slack.com/services/T1/B2/zzz"
],
"no_match": [
"https://hooks.slack.com/services/",
"https://example.com/services/T/B/x"
]
}
},
{
"id": "SC-SEC-013",
"type": "regex",
"pattern": "AC[0-9a-f]{32}",
"title": "Twilio Account SID",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Twilio account SID (AC + 32 hex).",
"examples": {
"match": [
"AC0123456789abcdef0123456789abcdef",
"sid = 'ACffffffffffffffffffffffffffffffff'",
"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"AC1234",
"ZZ0123456789abcdef0123456789abcdef"
]
}
},
{
"id": "SC-SEC-014",
"type": "regex",
"pattern": "(?i)twilio[^\\'\"\\n]{0,20}(auth_token|token)[^\\'\"\\n]{0,5}[\\'\"][0-9a-f]{32}[\\'\"]",
"title": "Twilio Auth Token",
"severity": "high",
"confidence": 0.78,
"category": "secret",
"explanation": "Twilio auth token in a quoted assignment.",
"examples": {
"match": [
"twilio auth_token = '0123456789abcdef0123456789abcdef'",
"TWILIO token = 'ffffffffffffffffffffffffffffffff'",
"twilio token='0123456789abcdef0123456789abcdef'"
],
"no_match": [
"twilio region",
"auth_token = 'short'"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-015",
"type": "regex",
"pattern": "SG\\.[a-zA-Z0-9_-]{22,}\\.[a-zA-Z0-9_-]{43,}",
"title": "SendGrid API Key",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "SendGrid SG. API key.",
"examples": {
"match": [
"SG.abcdefghijklmnopqrstuv.abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG",
"key = 'SG.0123456789012345678901.0123456789012345678901234567890123456789012'",
"SG.aaaaaaaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
],
"no_match": [
"SG.short.short",
"SGabcdef"
]
}
},
{
"id": "SC-SEC-016",
"type": "regex",
"pattern": "key-[0-9a-zA-Z]{32}",
"title": "Mailgun API Key",
"severity": "high",
"confidence": 0.8,
"category": "secret",
"explanation": "Mailgun key- API key.",
"examples": {
"match": [
"key-0123456789abcdef0123456789abcdef",
"MAILGUN = 'key-ffffffffffffffffffffffffffffffff'",
"key-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"key-short",
"mailgun key here"
]
}
},
{
"id": "SC-SEC-017",
"type": "regex",
"pattern": "ghp_[0-9a-zA-Z]{36}",
"title": "GitHub Personal Access Token",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "GitHub personal access token (ghp_).",
"examples": {
"match": [
"ghp_abcdefghijklmnopqrstuvwxyz0123456789ABCD",
"TOKEN=ghp_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
"ghp_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"ghp_short",
"gho_0123456789abcdefghijklmnopqrstuvwxyz"
]
}
},
{
"id": "SC-SEC-018",
"type": "regex",
"pattern": "gho_[0-9a-zA-Z]{36}",
"title": "GitHub OAuth Access Token",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "GitHub OAuth access token (gho_).",
"examples": {
"match": [
"gho_0123456789abcdefghijklmnopqrstuvwxyz",
"gho_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
"gho_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"gho_short",
"ghp_0123456789abcdefghijklmnopqrstuvwxyz"
]
}
},
{
"id": "SC-SEC-019",
"type": "regex",
"pattern": "(ghu|ghs)_[0-9a-zA-Z]{36}",
"title": "GitHub App Token",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "GitHub app/installation token (ghu_/ghs_).",
"examples": {
"match": [
"ghu_0123456789abcdefghijklmnopqrstuvwxyz",
"ghs_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
"ghu_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"ghu_short",
"ghp_0123456789abcdefghijklmnopqrstuvwxyz"
]
}
},
{
"id": "SC-SEC-020",
"type": "regex",
"pattern": "glpat-[0-9a-zA-Z_-]{20}",
"title": "GitLab Token",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "GitLab personal access token (glpat-).",
"examples": {
"match": [
"glpat-0123456789abcdefghij",
"TOKEN=glpat-ABCDEFGHIJ1234567890",
"glpat-aaaaaaaaaa----______"
],
"no_match": [
"glpat-short",
"gitlab token here"
]
}
},
{
"id": "SC-SEC-021",
"type": "regex",
"pattern": "(?i)cloudflare[^\\'\"\\n]{0,20}[\\'\"][a-zA-Z0-9_-]{40}[\\'\"]",
"title": "Cloudflare API Token",
"severity": "high",
"confidence": 0.75,
"category": "secret",
"explanation": "Cloudflare API token in a quoted assignment.",
"examples": {
"match": [
"cloudflare = '0123456789abcdef0123456789abcdef01234567'",
"CLOUDFLARE token '0123456789abcdef0123456789abcdef01234567'",
"cloudflare'0123456789abcdef0123456789abcdef01234567'"
],
"no_match": [
"cloudflare zone is set",
"cloudflare = 'short'"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-022",
"type": "regex",
"pattern": "dop_v1_[a-f0-9]{64}",
"title": "DigitalOcean Token",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "DigitalOcean personal access token (dop_v1_).",
"examples": {
"match": [
"dop_v1_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"TOKEN=dop_v1_ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"dop_v1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"dop_v1_short",
"dop_v2_0123456789"
]
}
},
{
"id": "SC-SEC-023",
"type": "regex",
"pattern": "(?i)heroku[^\\'\"\\n]{0,20}[\\'\"][0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\\'\"]",
"title": "Heroku API Key",
"severity": "high",
"confidence": 0.8,
"category": "secret",
"explanation": "Heroku API key (UUID) in a quoted assignment.",
"examples": {
"match": [
"heroku = '12345678-1234-1234-1234-123456789012'",
"HEROKU key '0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d'",
"heroku'12345678-1234-1234-1234-123456789012'"
],
"no_match": [
"heroku app name",
"heroku = 'not-a-uuid'"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-024",
"type": "regex",
"pattern": "(?i)firebase.{0,20}AIza[0-9A-Za-z-_]{35}",
"title": "Firebase API Key",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Firebase config exposing an AIza API key.",
"examples": {
"match": [
"firebase config AIzaSyA1234567890abcdefghijklmnopqrstuvw",
"FIREBASE_KEY = 'AIzaSyB1234567890abcdefghijklmnopqrstuv'",
"firebaseConfig AIzaSyC0000000000000000000000000000000000"
],
"no_match": [
"firebase hosting docs",
"firebase AIza-short"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-025",
"type": "regex",
"pattern": "npm_[a-zA-Z0-9]{36}",
"title": "NPM Token",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "npm automation/access token (npm_).",
"examples": {
"match": [
"npm_0123456789abcdefghijklmnopqrstuvwxyz",
"NPM_TOKEN=npm_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
"npm_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"npm_short",
"npm install foo"
]
}
},
{
"id": "SC-SEC-026",
"type": "regex",
"pattern": "pypi-AgEIcHlwaS5vcmc[a-zA-Z0-9_-]{50,}",
"title": "PyPI Token",
"severity": "high",
"confidence": 0.95,
"category": "secret",
"explanation": "PyPI upload token (pypi-AgEI...).",
"examples": {
"match": [
"pypi-AgEIcHlwaS5vcmcaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"TOKEN=pypi-AgEIcHlwaS5vcmc0000000000000000000000000000000000000000000000000000000",
"pypi-AgEIcHlwaS5vcmc_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-"
],
"no_match": [
"pypi-short",
"pypi-AgEIcHlwaS5vcmcshort"
]
}
},
{
"id": "SC-SEC-027",
"type": "regex",
"pattern": "postgres(ql)?://[^/\\s]+:[^/\\s]+@[^/\\s]+",
"title": "PostgreSQL Connection URI",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "PostgreSQL URI with embedded user:password@host.",
"examples": {
"match": [
"postgresql://user:p@ssword@localhost/db",
"postgres://admin:secret@db.internal:5432/app",
"DB_URL = 'postgresql://u:pw@host/db'"
],
"no_match": [
"postgresql://localhost/db",
"postgres docs"
]
}
},
{
"id": "SC-SEC-028",
"type": "regex",
"pattern": "mysql://[^/\\s]+:[^/\\s]+@[^/\\s]+",
"title": "MySQL Connection URI",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "MySQL URI with embedded user:password@host.",
"examples": {
"match": [
"mysql://user:pass@localhost/db",
"mysql://admin:secret@db.internal:3306/app",
"DB='mysql://u:pw@host/db'"
],
"no_match": [
"mysql://localhost/db",
"mysql client docs"
]
}
},
{
"id": "SC-SEC-029",
"type": "regex",
"pattern": "mongodb(\\+srv)?://[^/\\s]+:[^/\\s]+@[^/\\s]+",
"title": "MongoDB Connection URI",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "MongoDB URI with embedded user:password@host.",
"examples": {
"match": [
"mongodb://user:pass@localhost/db",
"mongodb+srv://admin:secret@cluster.internal/app",
"URI='mongodb://u:pw@host/db'"
],
"no_match": [
"mongodb://localhost/db",
"mongodb atlas docs"
]
}
},
{
"id": "SC-SEC-030",
"type": "regex",
"pattern": "redis://[^/\\s]+:[^/\\s]+@[^/\\s]+",
"title": "Redis Connection URI",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Redis URI with embedded user:password@host.",
"examples": {
"match": [
"redis://user:pass@localhost:6379/0",
"redis://default:secret@redis.internal/1",
"URL='redis://u:pw@host'"
],
"no_match": [
"redis://localhost:6379",
"redis cli docs"
]
}
},
{
"id": "SC-SEC-031",
"type": "regex",
"pattern": "OP_CONNECT_TOKEN\\s*=\\s*[\\'\"]?[a-zA-Z0-9_\\-]{20,}",
"title": "1Password Connect Token (OP_CONNECT_TOKEN)",
"severity": "critical",
"confidence": 0.9,
"category": "secret",
"explanation": "1Password Connect token assignment.",
"examples": {
"match": [
"OP_CONNECT_TOKEN=eyJhbGciOiJFUzI1Niabcdefghij",
"OP_CONNECT_TOKEN = 'abcdefghijklmnopqrst'",
"OP_CONNECT_TOKEN=abcdefghijklmnopqrst1"
],
"no_match": [
"OP_CONNECT_TOKEN=short",
"OP_CONNECT_HOST=https://x"
]
}
},
{
"id": "SC-SEC-032",
"type": "regex",
"pattern": "ops_(?=[a-zA-Z0-9+/=_\\-]*[0-9A-Z+/=\\-])[a-zA-Z0-9+/=_\\-]{50,}",
"title": "1Password Service Account Token",
"severity": "critical",
"confidence": 0.92,
"category": "secret",
"explanation": "1Password service-account token (ops_). The lookahead requires at least one digit, uppercase letter, or base64 symbol in the token body so all-lowercase-and-underscore strings after ops_ do not false-positive.",
"examples": {
"match": [
"ops_eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9abcdefghijklmnopqrstuvwxyz0123456789",
"TOKEN=ops_0123456789012345678901234567890123456789012345678901",
"ops_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=="
],
"no_match": [
"ops_short",
"operations team",
"ops_only_our_stale_entries_leaving_others_byte_identical"
]
}
},
{
"id": "SC-SEC-033",
"type": "regex",
"pattern": "hvs\\.[a-zA-Z0-9_\\-]{24,}",
"title": "HashiCorp Vault Token",
"severity": "critical",
"confidence": 0.92,
"category": "secret",
"explanation": "HashiCorp Vault service token (hvs.).",
"examples": {
"match": [
"hvs.0123456789abcdefghijklmn",
"VAULT_TOKEN=hvs.ABCDEFGHIJKLMNOPQRSTUVWX",
"hvs.aaaaaaaaaaaaaaaaaaaaaaaa"
],
"no_match": [
"hvs.short",
"hvac library"
]
}
},
{
"id": "SC-SEC-034",
"type": "regex",
"pattern": "NEXT_PUBLIC_[A-Z_]*(?:SECRET|TOKEN|KEY|PASSWORD|API_KEY|PRIVATE|AUTH)[A-Z_]*\\s*=\\s*[\\'\"][^\\'\"]{8,}[\\'\"]",
"title": "Framework Exposed Secret: NEXT_PUBLIC_",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Next.js NEXT_PUBLIC_ var exposing a secret to the browser bundle.",
"examples": {
"match": [
"NEXT_PUBLIC_SECRET_KEY='prod-secret-key-abc123def456'",
"NEXT_PUBLIC_API_KEY = \"abcdefgh12345678\"",
"NEXT_PUBLIC_AUTH_TOKEN='abcdefghij'"
],
"no_match": [
"NEXT_PUBLIC_ANALYTICS_ID='UA-12345'",
"NEXT_PUBLIC_URL='https://x'"
]
}
},
{
"id": "SC-SEC-035",
"type": "regex",
"pattern": "REACT_APP_[A-Z_]*(?:SECRET|TOKEN|KEY|PASSWORD|API_KEY|PRIVATE|AUTH)[A-Z_]*\\s*=\\s*[\\'\"][^\\'\"]{8,}[\\'\"]",
"title": "Framework Exposed Secret: REACT_APP_",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "CRA REACT_APP_ var exposing a secret to the browser bundle.",
"examples": {
"match": [
"REACT_APP_API_SECRET='supersecretapikey12345678'",
"REACT_APP_SECRET_KEY = \"abcdefgh12345678\"",
"REACT_APP_TOKEN='abcdefghij'"
],
"no_match": [
"REACT_APP_TITLE='My App'",
"REACT_APP_URL='https://x'"
]
}
},
{
"id": "SC-SEC-036",
"type": "regex",
"pattern": "VITE_[A-Z_]*(?:SECRET|TOKEN|KEY|PASSWORD|API_KEY|PRIVATE|AUTH)[A-Z_]*\\s*=\\s*[\\'\"][^\\'\"]{8,}[\\'\"]",
"title": "Framework Exposed Secret: VITE_",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Vite VITE_ var exposing a secret to the browser bundle.",
"examples": {
"match": [
"VITE_AUTH_TOKEN='vt_live_abcdefghijklmnop'",
"VITE_SECRET_KEY = \"abcdefgh12345678\"",
"VITE_API_KEY='abcdefghij'"
],
"no_match": [
"VITE_APP_NAME='hi'",
"VITE_PORT='3000'"
]
}
},
{
"id": "SC-SEC-037",
"type": "regex",
"pattern": "EXPO_PUBLIC_[A-Z_]*(?:SECRET|TOKEN|KEY|PASSWORD|API_KEY|PRIVATE|AUTH)[A-Z_]*\\s*=\\s*[\\'\"][^\\'\"]{8,}[\\'\"]",
"title": "Framework Exposed Secret: EXPO_PUBLIC_",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Expo EXPO_PUBLIC_ var exposing a secret to the app bundle.",
"examples": {
"match": [
"EXPO_PUBLIC_PRIVATE_KEY='expo_pk_1234567890abcdef'",
"EXPO_PUBLIC_SECRET_KEY = \"abcdefgh12345678\"",
"EXPO_PUBLIC_TOKEN='abcdefghij'"
],
"no_match": [
"EXPO_PUBLIC_NAME='hi'",
"EXPO_PUBLIC_URL='https://x'"
]
}
},
{
"id": "SC-SEC-038",
"type": "regex",
"pattern": "GATSBY_[A-Z_]*(?:SECRET|TOKEN|KEY|PASSWORD|API_KEY|PRIVATE|AUTH)[A-Z_]*\\s*=\\s*[\\'\"][^\\'\"]{8,}[\\'\"]",
"title": "Framework Exposed Secret: GATSBY_",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Gatsby GATSBY_ var exposing a secret to the browser bundle.",
"examples": {
"match": [
"GATSBY_SECRET_KEY='gatsby_sk_abcdefghijklmno'",
"GATSBY_API_KEY = \"abcdefgh12345678\"",
"GATSBY_TOKEN='abcdefghij'"
],
"no_match": [
"GATSBY_TITLE='hi'",
"GATSBY_URL='https://x'"
]
}
},
{
"id": "SC-SEC-039",
"type": "regex",
"pattern": "NX_PUBLIC_[A-Z_]*(?:SECRET|TOKEN|KEY|PASSWORD|API_KEY|PRIVATE|AUTH)[A-Z_]*\\s*=\\s*[\\'\"][^\\'\"]{8,}[\\'\"]",
"title": "Framework Exposed Secret: NX_PUBLIC_",
"severity": "high",
"confidence": 0.85,
"category": "secret",
"explanation": "Nx NX_PUBLIC_ var exposing a secret to the browser bundle.",
"examples": {
"match": [
"NX_PUBLIC_API_KEY='nx_key_1234567890abcdef'",
"NX_PUBLIC_SECRET_KEY = \"abcdefgh12345678\"",
"NX_PUBLIC_TOKEN='abcdefghij'"
],
"no_match": [
"NX_PUBLIC_NAME='hi'",
"NX_PUBLIC_URL='https://x'"
]
}
},
{
"id": "SC-SEC-040",
"type": "regex",
"pattern": "eyJ[a-zA-Z0-9_-]{10,}\\.eyJ[a-zA-Z0-9_-]{10,}\\.[a-zA-Z0-9_-]{10,}",
"title": "JWT Token",
"severity": "high",
"confidence": 0.8,
"category": "secret",
"explanation": "Three-part JSON Web Token.",
"examples": {
"match": [
"eyJ0epqrstuvwx.eyJ0epqrstuvwx.signaturevalue",
"eyJabcdefghij.eyJabcdefghij.abcdefghij",
"token = 'eyJ0epqrstuvwx.eyJ0epqrstuvwx.signaturevalue'"
],
"no_match": [
"eyJ.short.x",
"not.a.jwt"
]
}
},
{
"id": "SC-SEC-041",
"type": "regex",
"pattern": "(?i)bearer\\s+[a-zA-Z0-9_\\-\\.]{20,}",
"title": "Bearer Token",
"severity": "high",
"confidence": 0.6,
"category": "secret",
"explanation": "Authorization bearer token value.",
"examples": {
"match": [
"Authorization: Bearer abcdefghij1234567890",
"bearer ABCDEFGHIJ1234567890.xyz",
"Bearer abcdefghij_klmnop-qrstuv"
],
"no_match": [
"bearer short",
"bear with me"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-042",
"type": "regex",
"pattern": "(?i)(api_key|apikey|secret|token|password|auth_token|access_key|private_key)[^\\'\"\\n=]{0,20}=\\s*[\\'\"][0-9a-zA-Z\\-_/+]{16,}[\\'\"]",
"title": "Generic Secret Assignment",
"severity": "medium",
"confidence": 0.55,
"category": "secret",
"explanation": "Generic secret/token/password assignment to a quoted long value.",
"examples": {
"match": [
"api_key = 'abcdefghijklmnop'",
"secret_value = 'abcdefghijklmnop1234'",
"TOKEN = '0123456789abcdef0123'"
],
"no_match": [
"api_key = 'short'",
"name = 'hello'"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-043",
"type": "regex",
"pattern": "(?i)[a-z]+://[^/\\s:]+:[^/\\s@]+@[^/\\s]+",
"title": "URI with Embedded Password",
"severity": "medium",
"confidence": 0.55,
"category": "secret",
"explanation": "Connection URI with an embedded credential.",
"examples": {
"match": [
"ftp://user:password@host.com/file",
"scheme://admin:s3cr3t@internal.host",
"amqp://guest:guest@broker"
],
"no_match": [
"https://example.com/path",
"scheme://hostonly.com"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-SEC-044",
"type": "regex",
"pattern": "(?i)(password|passwd|pwd)\\s*[=:]\\s*[\\'\"][^\\'\"]{8,}[\\'\"]",
"title": "Generic Password in Config",
"severity": "medium",
"confidence": 0.5,
"category": "secret",
"explanation": "Quoted password/passwd/pwd assignment in config.",
"examples": {
"match": [
"password = 'supersecret123'",
"passwd: 'longpassword99'",
"pwd='anotherpass12'"
],
"no_match": [
"password = 'short'",
"password is set elsewhere"
]
},
"flags": [
"IGNORECASE"
]
},
{
"id": "SC-NET-001",
"type": "regex",
"pattern": "\\b(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\b",
"title": "Hardcoded IP Address",
"severity": "low",
"confidence": 0.3,
"category": "network",
"explanation": "Hardcoded IPv4 address (noisy, informational).",
"examples": {
"match": [
"host = '192.168.1.1'",
"10.0.0.255",
"connect to 172.16.254.1"
],
"no_match": [
"version 1.2.3 release",
"300.400.500.600"
]
}
}
]
}
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: 194k | Updated | Claude CodeCodex | Verified | Install |