Skip to main content

Overview

The earliest a vulnerability can be prevented is before code is written at all. Asymptote’s Secure by Design mode injects your organization’s active security policies into your AI coding agent’s context at the start of every session, so the agent is security-aware from the first prompt. Rather than waiting to catch insecure code after it’s generated, Secure by Design shapes what gets generated in the first place.

How It Works

When secure-by-design is enabled via the Asymptote CLI config, Asymptote injects your active security policies into Claude Code’s context during the UserPromptSubmit hook. This means:
  1. Claude receives your organization’s security requirements before writing any code
  2. Policy-aware generation reduces the number of violations that need to be caught and remediated downstream
  3. Guardrails at code generation time have more context to work with, improving signal quality

Enabling Secure by Design

Use the asym config command to enable the setting:
asym config set secure-by-design true
To check the current value:
asym config get secure-by-design
See the CLI config reference for full details on the secure-by-design setting.

Supported Agents

Secure by Design currently works with Claude Code. Support is scoped to agents that expose a UserPromptSubmit hook, which allows Asymptote to inject context before the agent begins processing.

Relationship to Other SDLC Stages

Secure by Design is the earliest point in the pipeline. Policies injected at the design stage complement the enforcement that happens downstream:
StageWhenWhat Asymptote Does
Secure by DesignBefore code is writtenInjects security policies into the agent’s context at session start
Code GenerationAs code is writtenScans diffs in real time and flags violations
CI / Pull RequestsWhen a PR is openedReviews the full diff and blocks merge on violations
Pre-production TestingBefore deployingWhitebox agentic pentesting
Async ScansOn demand or scheduledFull policy sweep across the codebase