Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
appsec-agent — A TypeScript package that provides AI-powered agents for Application Security (AppSec) tasks, built on top of the frontier models. | Kitploit
Tools/GitHubGitHub/owasp/appsec-agent
Static AnalysisVulnerability AnalysisCode AnalysisPenetration TestingDevSecOpsThreat IntelligenceLearning & EducationAI Security
GitHubowasp/appsec-agent

appsec-agent

A TypeScript package that provides AI-powered agents for Application Security (AppSec) tasks, built on top of the frontier models.

View Repository
73319 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Website
Share

AppSec Agent

AI-powered security agents for code review, PR scanning, threat modeling, fix generation, and more.

You can use AppSec Agent in three ways:

PathBest forGet started
CLI (agent-run)Trying agents from your terminalGetting started
npm libraryBuilding your own app or pipelineWeb integration · Development
AI Threat ModelerA full web UI with login, dashboards, and exports — no CLI requiredParent app README

Install from npm: npm install appsec-agent


What you need first

  1. Node.js 18+ — nodejs.org
  2. An API key — by default the Claude provider uses ANTHROPIC_API_KEY (Anthropic console). Optional Codex provider uses CODEX_API_KEY — see Configuration.
  3. A terminal — commands below use npx; if you installed globally, drop the npx prefix.

Quick start (5 minutes)

1. Install

root@kitploit:~
npm install appsec-agent

Or install globally so agent-run is on your PATH:

root@kitploit:~
npm install -g appsec-agent

2. Set your API key

Add to your shell profile (.zshrc, .bashrc, etc.), then open a new terminal:

root@kitploit:~
export ANTHROPIC_API_KEY="your-key-here"

3. Run your first agent

root@kitploit:~
# Interactive security Q&A (default role)
npx agent-run

# List every available role
npx agent-run -l

# Review code in the current project
npx agent-run -r code_reviewer -s ./src

That’s it. For step-by-step setup, troubleshooting, and running from a git clone, see Getting started.


Choose an agent

Each role is a specialized workflow. Pass it with -r / --role.

RoleWhat it does
simple_query_agentAsk AppSec questions; optional source folder
code_reviewerFull-repo security review; markdown or JSON report
pr_reviewerPR/diff-focused review (use with --diff-context)
pr_adversarySecond pass: drop findings without a real exploit path
fp_adversaryFull-repo false-positive filter (confirm/dismiss verdicts)
code_fixerGenerate a minimal fix for one finding
qa_verifierRun tests to check a fix didn’t break anything
finding_validatorRe-test whether a finding still applies
threat_modelerSTRIDE threat model + risk registry (JSON)
threat_adversarySecond pass: filter ungrounded threats
context_extractorExtract repo metadata for downstream tools
learned_guidance_synthesizerSynthesize dismissal guidance from signal buckets

Full descriptions: Agents guide
Copy-paste commands and JSON file formats: Examples


Common commands

root@kitploit:~
# PR security review (JSON report)
npx agent-run -r pr_reviewer --diff-context pr-diff.json -s ./repo -f json -o report.json

# Threat model (JSON)
npx agent-run -r threat_modeler -s ./src -f json -o threat_model_report.json

# Use OpenAI Codex instead of Claude (opt-in)
npx agent-run -r threat_modeler -s ./src -f json --provider codex -m gpt-4.1

# Add deployment context (helps prioritize findings)
npx agent-run -r code_reviewer -s ./src -c "Production API on AWS, handles PII"

# Version and help
npx agent-run -v
npx agent-run --help

Documentation

GuideContents
Getting startedInstall, API keys, first runs, troubleshooting
AgentsWhat each role is for and when to use it
ExamplesCLI recipes and JSON input shapes
ConfigurationEnvironment variables, appsec_agent.yaml, Claude vs Codex
Web integrationUsing the library in a server safely
DevelopmentClone, build, test, architecture

Features at a glance

  • Multiple specialized agents (review, PR scan, threat model, fix, QA, adversarial passes)
  • Claude (default) or Codex (--provider codex) backends
  • Structured JSON outputs with schemas for parent-app integration
  • PR diff mode and automatic chunking for large PRs
  • Optional MCP tools for live findings history, import graphs, and codebase graphs
  • Thread-safe library design for web servers

Related projects

AI Threat Modeler bundles this package into a Dockerized Next.js app with authentication, threat-model canvas, PDF/CSV export, and chat — the easiest path if you don’t want to write integration code.

root@kitploit:~
git clone https://github.com/yangsec888/ai-threat-modeler.git
cd ai-threat-modeler
docker-compose up -d --build
# Open http://localhost:3000  (default: admin / admin)

License & author

Licensed under Apache 2.0.

Sam Li — [email protected]

References: Claude Agent SDK · Anthropic API

Download Tool