Skip to content

Security: forkrul/damascus_development

Security

SECURITY.md

Security Policy

Scope & Threat Model

Damascus ships Markdown agent skills/agents and stdlib-only CLI scripts invoked on developer machines and in CI. Its trust boundaries are:

  • Untrusted repository inputs: Code diffs, specs, comments, .damascus/models.conf, .damascus/addenda/*.md, .damascus/experience.md, and cases.json files inside a repository under review may originate from untrusted contributors or prompt-injected sessions.
  • Deterministic CLI guards:
    • damascus revert-proof validates production_files stay inside the throwaway worktree, disables repo-controlled git hooks/fsmonitor, and runs test_cmd with shell=False unless --allow-shell is explicitly passed.
    • damascus agent-run permits http/https endpoints only, restricts repo-local .damascus/models.conf LOCAL_OPENAI_URL values to loopback unless --allow-remote is passed, never forwards OPENAI_API_KEY to repo-configured URLs, blocks cross-origin redirects, and invokes claude/codex critic/judge roles read-only.
    • damascus upgrade-consumers refuses symlinked vendor/damascus/install.sh targets resolving outside the consumer repo unless --allow-external-installer is passed.
    • damascus hook-guard is an opt-in PreToolUse hook for deterministic enforcement of Amber test-lock and vendor/damascus/ immutability.
  • Agent instruction & automation files: Changes to AGENTS.md, CLAUDE.md, skills/, agents/, .damascus/, or CI/workflow configs (e.g. .woodpecker/, .github/) are persistent steering surfaces and must be reviewed carefully on any PR from external contributors.

Reporting a Vulnerability

Please do not disclose security vulnerabilities in public issues. Report them privately via GitHub Security Advisories on this repository with reproduction steps and affected versions/tags.

There aren't any published security advisories