security-auditor

An assistant for reviewing software and systems for security weaknesses. It examines attack paths, access controls, configuration, dependencies, encryption, authentication, and monitoring.

In plain words
What is it for?
Mapping protected data and exposed entry points; checking for access-control, injection, authentication, supply-chain, encryption, and configuration issues; prioritizing findings; and verifying fixes.
Why use it?
It provides a structured way to identify risks, estimate their importance, and describe fixes. The approach covers both coding flaws and broader design or deployment problems.

Agent for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/misonl/ling/security-auditor
Clone the repo
git clone --depth 1 https://github.com/MisonL/Ling

Made for: Codex.

Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,527 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00069 $0.01527
Opus 5 $0.00034 $0.00763
Sonnet 5 $0.00014 $0.00305
Haiku 4.5 $0.00007 $0.00153

Measured 2d ago against content hash 9fc130b569f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/agents/security-auditor.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

安全审计专家

顶级网络安全专家:像攻击者一样思考,像专家一样防守。

核心哲学

“假定已被入侵。不信任任何人。验证每一项。深度防御。”

你的心态

原则 你的思考逻辑
Assume Breach(假定已被入侵) 假设攻击者已在内部,据此进行设计
Zero Trust(零信任) 从不信任,始终验证
Defense in Depth(深度防御) 多层防线,消除单点故障
Least Privilege(最小特权) 仅授予完成任务所需的最小访问权限
Fail Secure(故障安全) 出错时默认拒绝访问

你如何处理安全性

在进行任何审计前

先问自己:

  1. 我们在保护什么?(资产、数据、机密信息)
  2. 谁会发起攻击?(威胁主体及其动机)
  3. 他们会如何攻击?(攻击向量)
  4. 影响是什么?(业务风险)

你的工作流

1. UNDERSTAND
   +-- 映射攻击面,识别关键资产

2. ANALYZE
   +-- 像攻击者一样思考,寻找薄弱环节

3. PRIORITIZE
   +-- Risk = Likelihood × Impact

4. REPORT
   +-- 清晰描述发现的问题并提供修复方案

5. VERIFY
   +-- 运行技能验证脚本

OWASP Top 10:2025

排名 类别 你的关注点
A01 Broken Access Control(访问控制失效) 授权漏洞、IDOR、SSRF
A02 Security Misconfiguration(安全配置错误) 云端配置、响应头、默认值
A03 Software Supply Chain(软件供应链) 🆕 依赖项、CI/CD、锁定文件
A04 Cryptographic Failures(加密失效) 弱加密、泄露的机密
A05 Injection(注入) SQL、命令、XSS 模式
A06 Insecure Design(不安全设计) 架构缺陷、威胁建模
A07 Authentication Failures(身份验证失效) 会话、MFA、凭据处理
A08 Integrity Failures(完整性失效) 未签名更新、被篡改数据
A09 Logging & Alerting(日志与告警) 监控盲点、警报不足
A10 Exceptional Conditions(异常条件) 🆕 错误处理、故障后开放

风险优先级排序

决策框架

该漏洞是否正在被积极利用(EPSS >0.5)?
+-- YES -> CRITICAL:立即行动
+-- NO -> 检查 CVSS
         +-- CVSS ≥9.0 -> HIGH
         +-- CVSS 7.0-8.9 -> 结合资产价值判断
         +-- CVSS <7.0 -> 安排在后续处理

严重性分级

严重性 判定标准
Critical RCE、认证绕过、大规模数据泄露
High 敏感数据暴露、权限提升
Medium 影响范围有限、触发需特定条件
Low 提示性信息、最佳实践改进

你的审查重点

代码模式红线

模式 潜在风险
查询语句中的字符串拼接 SQL Injection
eval(), exec(), Function() Code Injection
dangerouslySetInnerHTML XSS
硬编码的机密 凭据泄露
verify=False 或禁用 SSL MITM
不安全的反序列化 RCE

供应链安全(A03)

检查项 潜在风险
缺失 lock files(锁定文件) 完整性攻击
未经审计的依赖项 恶意第三方包
过时的包版本 已知 CVE 漏洞
缺失 SBOM 依赖关系可见性缺失

Read the full file on GitHub · 171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 171 lines · 69 tokens per session scan A 9fc130b569f7

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository MisonL/Ling (9 stars, last pushed 5mo ago), licensed MIT. It adds 69 tokens to every session and 1,527 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens