Skip to content
Conduit

skill

trust-boundary-security-engineer

A portable, documentation-first AI skill for security engineering reasoning — adversarial thinking, evidence over assumptions, temporal trust boundaries, and structured findings.

Set up

Skills are installed by placing their folder where your agent loads skills.

The download comes from github.com/Ponce1969/trust-boundary-security-engineer itself, not from our server, so what you get is exactly what its author published.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below.

README

synced Oct 22, 2026

Trust Boundary

Stable / Technology-Agnostic Security Reasoning Core for AI Agents

A portable, documentation-first reasoning framework that teaches agents to think like responsible senior security engineers — adversarially, methodically, and with evidence over assumptions.

No code · No packages · No installation · Just knowledge, principles, and structured reasoning

License: MIT Docs: Markdown Skill: v1.0 Scope: Security Core Content: 6 specs · 10 knowledge · 6 principles · 4 checklists · 5 examples · 3 references


Why This Exists

Most security tools find problems. This skill teaches how to think about them.

It gives AI agents a structured reasoning framework — perceive input, construct context, generate hypotheses, evaluate evidence, synthesize decisions — instead of a list of rules to check off.

The result: findings that are proportional, evidence-backed, and teach the reader why something matters, not just that it does.

Who This Is For

WhoWhy
AI agent developersWant agents that reason about security instead of pattern-matching vulnerability names
Security engineersReview code with AI assistance and want structured, proportional findings
Platform teamsBuild concurrent or distributed systems and need temporal reasoning, not just spatial analysis

What Makes This Different

Typical Security ToolTrust Boundary Skill
Pattern-matches vulnerability namesReasons from evidence through structured hypotheses
Treats all findings equallyQualifies findings as structurally guaranteed or time-dependent
Reports controls as binary present/absentEvaluates control sufficiency — present but inadequate is a different finding
Analyzes code at a single point in timeModels state evolution across execution time
Ignores concurrency or treats it as a special caseConstructs temporal trust boundaries alongside spatial ones
Outputs flat vulnerability listsStructures findings as Observations · Inferences · Risks with explicit confidence levels
Stops at "control missing"Asks "is the control sufficient for this threat model?"

How It Works

The skill applies a six-step reasoning model when a security lens changes the analysis:

Key Reasoning Capabilities

Execution Model Classification Before reasoning, the agent classifies the system's execution model (sequential, concurrent, distributed, or mixed). This determines which hypothesis categories are mandatory rather than optional.

State Evolution Modeling For concurrent and distributed systems, shared mutable state is traced from creation through mutation to disposal. Windows where state is inconsistent, partially committed, or visible to unauthorized actors are identified across execution time — not just at a single snapshot.

Temporal Trust Boundaries Traditional analysis identifies spatial boundaries (service-to-service, layer-to-layer). This skill also identifies temporal boundaries — where concurrent execution allows state from one context to leak into another without explicit synchronization.

Defensive Control Sufficiency A control that exists but is inadequate for the threat model is a different finding than a control that is absent. A rate limiter with ±10% jitter under 100 concurrent requests is present but insufficient. The skill evaluates sufficiency, not just presence.

Temporal Qualification of Conclusions Findings are classified as structurally guaranteed (hold regardless of execution order) or time-dependent (manifest under specific interleavings). This prevents treating race conditions as deterministic or dismissing them as unlikely.

Security Controls Undermined by Retries A security mechanism that works in normal conditions may fail under retry or concurrent execution. Rate limits consumed by retry storms, account lockout counters bypassed by parallel attempts — these are hypotheses where the control exists but is undermined by the execution model.

Distributed Inconsistency Resolution When a system can reach inconsistent state, the resolution mechanism determines the security impact. Last-writer-wins silently discards authorized changes. Manual reconciliation leaves inconsistency indefinitely. Automatic merge may produce unintended state. The skill evaluates the resolution, not just the inconsistency.

Repository Structure

security-engineer-skill/
├── README.md              ← You are here
├── LICENSE                ← MIT
├── AGENTS.md              ← Agent behavior rules and contribution guidelines
├── SKILL.md               ← Skill definition, activation, and context loading
│
├── specs/                 ← What the project is and how it behaves
│   ├── SPEC-001           ← Project vision and scope
│   ├── SPEC-002           ← Architecture and directory responsibilities
│   ├── SPEC-003           ← Behavioral principles and communication norms
│   ├── SPEC-004           ← Content organization rules
│   ├── SPEC-005           ← Agent reasoning model (the core)
│   └── SPEC-006           ← Skill extension protocol & precedence rules
│
├── principles/            ← How the skill thinks (foundational axioms)
├── knowledge/             ← What the skill knows (technology-agnostic concepts)
├── checklists/            ← What the skill checks (general software verification)
├── patterns/              ← Concrete security patterns (emerging, validated, established)
├── examples/              ← How the skill applies (worked walkthroughs)
├── references/            ← Where the skill points (external standards)
└── docs/                  ← Architecture proposals and refactor history
    └── architecture/

What's Inside

SpecPurpose
SPEC-001Project vision and scope
SPEC-002Repository structure and directory responsibilities
SPEC-003Behavioral principles and communication norms
SPEC-004How content should be written and organized
SPEC-005How the agent processes, reasons, and decides
SPEC-006Extension protocol, precedence rules, and domain contracts
PrincipleCore Idea
Evidence over AssumptionsBase findings on observable evidence. Say so when evidence is unavailable.
Education over FearTeach and explain. Do not overwhelm with warnings.
Human in the LoopInform and support decisions. Never replace human judgment.
Minimal ChangePrefer the smallest safe change that solves the problem.
Context MattersInterpret every finding within its environment and intended use.
Control SufficiencyA control that exists but is inadequate for the threat is a different finding than a control that is absent.
ConceptKey Insight
Secure by DefaultThe path of least resistance should be the safe path.
Least PrivilegeGive only the permissions needed — nothing more.
Defense in DepthNo single control should be the only one standing.
Input ValidationDefine what is acceptable. Reject everything else.
Secrets ManagementA leaked secret is an identity compromise, not a data breach.
Secure SerializationReconstruction is an active operation, not a passive one.
Trust BoundariesEvery point where data changes trust level is a security boundary.
Supply Chain SecurityEvery dependency is a trust decision — most are made implicitly.
Threat ModelingIdentify risks before they become incidents, not after.
Error Handling and Secure FailureWhen something goes wrong, the system should become more restrictive, not less.
ChecklistPurpose
Repository Entry ScanEntry protocol for any unfamiliar repository — classify, scan for signals, select the right checklist
Security Code ReviewReview code changes for security concerns
Secrets Management ReviewReview how a system handles credentials and secrets
Threat Modeling ReviewConduct a structured threat model
IDPatternExecution ModelConfidence
PAT-001Mutable SingletonConcurrentestablished
PAT-002Request Lifetime MismatchConcurrentestablished
PAT-003Background Task Lifetime LeakConcurrentvalidated
PAT-004Cryptographic Secret ReuseSequential, Concurrent, Distributed, Mixedestablished
PAT-005Control Present but InsufficientConcurrentvalidated
ReferenceWhat it covers
OWASP and Vulnerability StandardsOWASP Top 10, CWE Top 25, ASVS, Cheat Sheet Series — with direct mappings to this skill's knowledge files
Threat Modeling FrameworksSTRIDE, PASTA, LINDDUN, Attack Trees, MITRE ATT&CK, NIST SP 800-30 — when and how to apply each
Cloud and Infrastructure SecurityAWS Well-Architected, CIS Benchmarks, CSA CCM, NIST SP 800-190 for containers, MITRE ATT&CK for Cloud
ExampleDemonstrates
Authentication Bypass ReviewFull reasoning loop: perception, context, hypothesis, evidence, output
Concurrent Payment ReviewTemporal trust boundaries, state evolution modeling, execution model classification, defensive control sufficiency, temporal qualification, [REQUIRES_EXTERNAL_EVIDENCE]
TalkTalk Breach Case StudyReal-world incident analysis: structurally guaranteed findings, confirmed by absence of control, defense in depth, legacy system risks
IAC and Cloud Misconfiguration ReviewCloud-native attack surfaces: IAM wildcard policies, public S3 buckets, hardcoded credentials in CI/CD, blast radius amplification
Web App Container AuditTOCTOU in password reset, Docker network trust boundaries, XSS in server-rendered HTML, control sufficiency in rate limiting

Core Architecture & Specialized Extensions

Trust Boundary operates as the Stable / Technology-Agnostic Security Reasoning Core. Following SPEC-006 (Skill Extension Protocol), specialized domain auditor skills build on top of its reasoning engine without duplicating or weakening its foundational axioms:

       Trust Boundary Core (security-engineer-skill)
         [Stable / Technology-Agnostic Reasoning Core]
                            │
                            ▼
          Extension Protocol (SPEC-006)
         [Precedence, Compatibility & Contracts]
                            │
                            ▼
      Specialized Auditors (e.g., agentic-security-auditor)
         [Domain-Specific Specializations & Evidence Collectors]
  • Precedence Rule: An extension may specialize and expand the Core, but cannot contradict its axioms, evidence model, execution model, trust-boundary model, or control-sufficiency model.
  • Core Independence: Trust Boundary Core has zero operational dependency on extensions. It functions autonomously for general software engineering audits.
  • Available Extensions:
    • Agentic Security Auditor: Specialization for AI agents, multi-agent frameworks, MCP (Model Context Protocol), tool calling security, RAG/memory poisoning, the 3-Layer Sufficiency Rubric (Prompt/Arch/API), MAESTRO 7-layer taxonomy, and passive evidence collectors (audit_docker.py, audit_network.py, audit_secrets.py).

Platform Compatibility

This skill works with any AI agent that reads AGENTS.md or SKILL.md. Each platform uses a different mechanism — the table below shows the correct integration point for each:

PlatformIntegration fileHow to activate
KiroSKILL.mdPlace in .kiro/skills/security-engineer/ in the workspace
OpenCodeSKILL.mdPlace in ~/.config/opencode/skills/security-engineer/
Claude CodeCLAUDE.mdCopy or reference AGENTS.md content into CLAUDE.md at the project root
Cursor.cursorrulesCopy or reference AGENTS.md content into .cursorrules
Gemini CLIGEMINI.mdCopy or reference AGENTS.md content into GEMINI.md
Any agentSKILL.md or AGENTS.mdPoint the agent to SKILL.md as the activation contract. If the platform reads a different file, copy the activation rules into that file.

Note on portability: The skill content (knowledge, principles, checklists, examples) is platform-agnostic Markdown. Only the activation contract (the file that tells the agent when and what to load) needs to be adapted per platform.

Quick Start

  1. Read SKILL.md — the activation contract and context loading rules
  2. Start with SPEC-005 — the core reasoning model
  3. Try the Concurrent Payment Review — see the skill in action
  4. Activate by placing SKILL.md in your agent's skills directory

License

MIT — Use it, modify it, share it.

↑↓ navigate openesc close