-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDISCLOSURE
More file actions
66 lines (53 loc) · 3.01 KB
/
Copy pathDISCLOSURE
File metadata and controls
66 lines (53 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Dual-use content disclosure
===========================
@socketsecurity/scan-patterns is a SECURITY TOOL. It publishes the detector
pattern tables that Socket's baseline scanners run, so the package necessarily
CONTAINS the things it detects: credential-shaped regular expressions, prompt
injection and jailbreak patterns, data-exfiltration and privilege-escalation
signatures, and descriptions of insecure agent and CI configurations.
This disclosure exists because npm's dual-use policy
(https://docs.npmjs.com/policies/dual-use) requires a package whose content
could be repurposed for harm to state its functionality and its intended
legitimate use.
What the package contains
-------------------------
- `data/secrets.json` — regular expressions matching the SHAPE of API keys,
tokens, and private keys for ~300 services. These match credential FORMATS.
The package contains no real credential, and no fixture that is a live
secret.
- `data/skills.json` — patterns matching prompt-injection, jailbreak,
anti-refusal, data-exfiltration, memory-poisoning and privilege-escalation
text in AI-agent skill definitions.
- `data/agent-configs.json` — descriptions of insecure agent, MCP, hook, and
permission configurations.
- `data/workflows.json` — a checklist of GitHub Actions workflow audits.
- `data/manifests.json` — the subset of secret rules scoped to package
manifest and config files.
Every row is DERIVED from a pinned, publicly published upstream security
scanner and records that provenance (`provenance.source`, `provenance.ruleId`,
`provenance.license`). Nothing here is a novel attack technique; it is a
reformatting of detection rules that the upstream projects already publish.
Intended legitimate use
-----------------------
Defensive scanning. The tables are consumed by `socket scan secrets`,
`socket scan workflows`, `socket scan agent-configs`, `socket scan skills`,
and `socket scan manifests`, and by Socket's public composite actions, to find
leaked credentials and insecure AI-agent and CI configuration in a codebase
its operator controls.
The package is a passive data set with a small typed accessor API. It performs
no network access, executes nothing, and takes no action on a match — it only
describes what to look for. Acting on a finding is the consumer's decision.
Why the patterns cannot be redacted
-----------------------------------
A credential-detection rule has to contain the credential's shape, and an
injection detector has to contain the injection's wording. Obfuscating them
would make the package unable to do the one job it exists for. This is the
same posture as the upstreams it derives from — gitleaks, Trivy, zizmor,
AgentShield, and NVIDIA SkillSpector — all of which publish their rule sets
openly for the same reason.
Reporting
---------
The full source, including every generator and pinned upstream slice, is
public at https://github.com/SocketDev/socket-scan-patterns for review.
Security concerns about this package: https://socket.dev/security or the
repository's SECURITY policy.