Security

From griddynamics/rosetta · View interactive version

Security is an AI agent skill from the GitHub repository griddynamics/rosetta. Run authorized, evidence-preserving security reviews and prepare remediation inputs.

How to use this skill

Skill file

<security>

<purpose>

Guide coding agents through safe, contextual security review. Orchestration remains external.

</purpose>

<audience>

Coding agents reviewing software, infrastructure, platforms, interfaces, hosts, or AI systems.

</audience>

<prerequisites>

</prerequisites>

<inputs>

All invocation inputs are optional: authorized scope, workspace context, available tools, and run policy. Discover only limited metadata first. Recommend missing decisions and obtain approval at the gate that needs them.

</inputs>

<secret_gate>

  1. Run before agent/model source ingestion.
  2. Prefer an approved redaction-safe local scanner.
  3. Otherwise APPLY SKILL FILE assets/security-secret-scan.sh against the approved roots.
  4. Exit 0: use the returned filename list. Exit 2: scanner unusable — stop; do not ingest source.
  5. Accept filenames only; never request matches.
  6. No hits: continue.
  7. DEV/QA-envs hits: do not read values; recommend exclusions; require approval.
  8. Above-QA or ambiguous hits: stop, non-overridable.

READ SKILL FILE assets/security-secrets.md for secret families and handling.

</secret_gate>

<authorization>

Recommend enterprise-safe targets, environment, exclusions, coverage, limits, stop conditions, tools, credentials, data flows, and active-test bounds. Explain tradeoffs. The user approves or amends material decisions.

</authorization>

<overall_flow>

  1. Prerequisites — load context and skills; keep run state.
  2. Readiness — inventory metadata/tools; gate secret-bearing files.
  3. Authorize — recommend scope/bounds; obtain user approval.
  4. Deterministic gates — lifecycle high+ → prepare tasks and stop.
  5. Model and select — threat-model; map applicable coverage/tools.
  6. Inspect and test — execute authorized activities; capture evidence.
  7. Normalize and triage — preserve sources; correlate, verify, prioritize.
  8. Independent review — challenge coverage, evidence, safety, conclusions.
  9. Report and package — sanitize outputs; approve INDEX; emit task inputs.

After separate lifecycle remediation, require a new clean deterministic run.

</overall_flow>

<tool_contract>

Before relying on a tool, verify and record invocation, version, supported targets, license category, local/network/SaaS behavior, credential needs, data flow, and verification date. Materially unverifiable, unavailable, GUI, hosted, or bot tools are recommendation-only.

</tool_contract>

<finding_integrity>

</finding_integrity>

<outputs>

With storage approval, write sanitized artifacts under docs/security/<run-id>/:

Group tasks by remediation area plus shared root cause/fix strategy, never by location. One task file is one concise, one-shot input for a later user-invoked coding session. Never invoke, coordinate, monitor, or validate remediation.

Without storage approval, return sanitized results without committing artifacts. Keep raw scanner output under docs/security/<run-id>/raw/; never commit it. Ask the user to review and commit; never commit or delete on their behalf.

</outputs>

<templates>

READ SKILL FILE templates/security-report.md, templates/security-run.json, templates/security-finding.json, templates/security-evidence-envelope.json, templates/security-threat-model.md, templates/security-task-index.md, templates/security-remediation-task.md.

</templates>

<asset_routing>

</asset_routing>

<validation_checklist>

</validation_checklist>

<pitfalls>

</pitfalls>

</security>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.