Security policy for the
agents-configrepository. Required by thesdlc-regulatoryskill's AI-Readable Codebase contract.
Do not open a public GitHub issue for security vulnerabilities. Instead, email the
maintainer at the address listed in package.json → author, or open a private
security advisory on GitHub. Include:
- A description of the issue and its impact.
- Steps to reproduce or a proof of concept.
- Affected file(s) or component(s).
- Suggested remediation if you have one.
You will receive an acknowledgment within 72 hours. Please do not disclose the vulnerability publicly until a fix has been released.
LLMs must never commit tokens, keys, personal data, or any sensitive information to code, even if they have permission to read such data.
This is the single most important security rule in this repository:
- Agents that read secrets (env vars,
.envfiles, vault contents, API tokens) must NEVER write them into any file, commit message, log, or artifact. - This prevents accidental data breaches and maintains the security boundary between "agent can read" and "agent can publish".
- If an agent encounters a secret while editing, it MUST redact it (replace with
<redacted>or a placeholder) rather than copy it forward. - The
sdlc-securitysubagent's Security Gate includes secrets scanning; any detected secret in a diff blocks advancement until remediated or explicitly accepted by a human.
- No secrets in the repository.
.gitignoreexcludes.env*andsecrets;.npmignorereinforces this for package publishing. - Use environment variables or a secure vault (e.g., Hardhat vault, AWS Secrets Manager, 1Password CLI) for all secrets — never inline them.
- The
sdlc-regulatoryskill's Security Gate requires secrets scanning on every AI-generated change (SAST, dependency scan, secrets scan, security AI review, authN/Z validation where applicable).
This repository is configuration-only (no runtime code, no deployable service). Security concerns are therefore primarily:
- Secret leakage via agent-generated content (the LLM Security Rule above).
- Supply-chain risk from the npm dependency
@opencode-ai/plugin— keep it pinned and monitor advisories. - Permission overreach in
opencode.jsonagentpermissionblocks — preferaskoverallowforeditandbashon any agent that touches production. - SDLC gate bypass — any change that weakens a gate, removes a reviewer, or raises an autonomy cap is a high-risk security change requiring human approval.
- Vulnerabilities in downstream projects that consume this config — report those to the downstream project, not here.
- Vulnerabilities in opencode or Claude Code themselves — report to the respective upstream project.
When a consuming project targets a regulated domain (EU AI Act high-risk, ISO 42001
certified, SOC 2 audited, or processes personal data under GDPR), the SDLC gates
must produce the artifacts the compliance crosswalk in the sdlc-regulatory skill
lists. This policy does not replace legal review.
AGENTS.md→ "Security Guidelines"sdlc-regulatoryskill → Security Gate checklist + compliance crosswalkCONTRIBUTING.md→ SDLC changes are high-risk.gitignore,.npmignore— what is excluded from repo and package