mcpField
S
secure-software-engineering

secure-software-engineering

github.com/magnus919Security153119 installsUpdated today
Repository

About secure-software-engineering

A prevention-focused skill for teams designing features, services, integrations, and releases. It guides security decisions from requirements through threat modeling, implementation, and evidence-based release review while tracking residual risk.

Key features

  1. 01Define security requirements and acceptance criteria
  2. 02Map threats, trust boundaries, and residual risk
  3. 03Select controls for identity, data, and AI boundaries
  4. 04Review changes and verify controls with evidence
  5. 05Record release evidence and accepted exceptions

Use cases

  1. 01Threat-model a new API or integration
  2. 02Plan isolation for tenant data
  3. 03Review security controls before release

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/magnus919/agent-skills --skill secure-software-engineering

After installing, type/secure-software-engineeringin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
evals/
evals.json
references/
ai-llm-security.md
authentication-authorization.md
dependency-supply-chain.md
incident-learning.md
input-validation-data-handling.md
multi-tenant-isolation.md
release-evidence.md
secrets-lifecycle.md
secure-code-review.md
secure-logging-audit.md
security-requirements-threat-modeling.md
source-index.md
templates/
lightweight-threat-model.md
secure-code-review-checklist.md
security-acceptance-criteria.md

Details

From the project README

Secure Software Engineering

Build security into decisions before defects reach production. This is a prevention-oriented workflow, not a claim that a design or release is secure. Record assumptions, the evidence collected, residual risks, and the owner of any accepted exception.

When To Use

Use this skill to answer "How do we build this securely?" for a new feature, integration, service, API, tenant boundary, AI capability, or release. Start early and revisit affected decisions when architecture, data flows, dependencies, or threats change.

Do not use it for an authorized post-build assessment: use security-audit-methodology. Do not use it as a vulnerability scanner for an existing codebase; use an authorized scanning tool or specialist security assessment. Use spec-driven-development when the task is to formalize the resulting requirements and phase gates, and verification-methodology to make evidence-backed completion claims.

When not to use

Use multi-tenant-saas-architecture for the end-to-end tenant model, control/application-plane placement, commercial lifecycle, and SaaS operating architecture; this skill owns the threat model and enforceable isolation controls. Use capacity-and-cost-engineering for quantitative tenant demand, quota sizing, fairness, load/soak evidence, and unit-cost tradeoffs. Route privacy lifecycle and deletion-verification artifacts to privacy-engineering.

Workflow

  1. Requirements: identify assets, actors, harm, data classifications, regulatory or contractual constraints, and security outcomes. Write testable acceptance criteria before selecting controls.
  2. Threat model: map data flows and trust boundaries; state assumptions, abuse cases, mitigations, and residual risk. STRIDE is optional vocabulary, not an exhaustive method.
  3. Design: choose controls that fit the trust model, including server-side authorization, data isolation, safe failure behavior, and AI capability boundaries. Explain rejected alternatives.
  4. Implement: make each boundary enforceable in code and configuration; protect input, output, credentials, dependencies, logs, and operational paths.
  5. Review and release: verify controls with direct evidence, review changes for bypasses, preserve release evidence, and feed incidents or near misses into requirements and tests.

Loop to the affected phase when evidence contradicts an assumption or a design changes. Stop when each material decision has an accountable owner, direct evidence or an explicit gap, and a disposition for residual risk.

Reference Files

Load whenFile
You need a version-pinned source and its decision usereferences/source-index.md
Defining assets, boundaries, abuse cases, or security criteriareferences/security-requirements-threat-modeling.md
Choosing identity, sessions, permissions, or service accessreferences/authentication-authorization.md
Handling requests, files, URLs, serialized data, output, or AI contentreferences/input-validation-data-handling.md
Adding a key, token, credential, or signing materialreferences/secrets-lifecycle.md
Adding, updating, building, or publishing dependenciesreferences/dependency-supply-chain.md
Designing logs, audit events, monitoring, or forensic evidencereferences/secure-logging-audit.md
Sharing infrastructure or data across tenants, including control/application planes, tenant context, support access, or tenant lifecycle proofreferences/multi-tenant-isolation.md
Reviewing a change or defining a security review gatereferences/secure-code-review.md
Preparing artifacts, exceptions, rollback, or response for releasereferences/release-evidence.md; load release-engineering to carry those controls and evidence through build, registry, promotion, and deployment gates
Learning from an incident, near miss, or escaped defectreferences/incident-learning.md
Designing an LLM, RAG pipeline, model integration, or agent toolreferences/ai-llm-security.md

Templates

Use whenFile
Starting a feature or system threat modeltemplates/lightweight-threat-model.md
Writing security acceptance criteria for a specification or changetemplates/security-acceptance-criteria.md
Reviewing a security-relevant code changetemplates/secure-code-review-checklist.md

Guardrails

  • Treat prompts, retrieved content, tool output, webhooks, files, and client-provided identity or tenant fields as untrusted until a boundary validates them.
  • A framework, scan, SBOM, signature, provenance attestation, or checklist is evidence about a limited claim, not proof that software is safe.
  • Do not make a control universal: authentication protocols depend on the trust model; row-level security is one isolation mechanism; secret rotation follows events and risk; controls need verification in their actual deployment.
  • Keep completed threat models and security acceptance criteria confidential when they expose system boundaries or weaknesses. Use placeholders, never real credentials or private deployment details.

Portability

Use the host environment's normal mechanisms to create artifacts, run tests, and obtain approvals. Do not assume a vendor, cloud, identity provider, database, CI system, or deployment topology.

Comments

Markdown supported