OPSEC规划
zero-lab-ai2026-10-26查看 1473复制 220
构建红队 OPSEC 计划,将经授权的目标与可观察的痕迹、检测风险、对抗措施、中止条件、清理和行动后审查联系起来。适用于在重大行动或攻击链之前、当隐蔽性很重要时、在嘈杂和安静方法之间做选择时,或当操作员需要可审计的 go/no-go 决策时使用。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md5231 chars
--- name: opsec-planning description: "Builds red-team OPSEC plans that connect an authorized objective to observable artifacts, detection risk, countermeasures, abort conditions, cleanup, and post-operation review. Use before a significant action or attack chain when stealth matters, when choosing between noisy and quiet approaches, or when an operator needs an auditable go/no-go decision." allowed-tools: Read Grep Glob --- # OPSEC planning OPSEC is deliberate risk selection. The goal is not zero telemetry; every meaningful action leaves evidence somewhere. The output is a plan that states what the operation protects, who can observe it, which artifacts each action creates, why the risk is worth taking, and when the operator stops. This skill operates only inside written authorization. It helps choose among authorized actions and never expands scope or grants permission to execute. ## When to Use - Use OPSEC Planning for authorized security work. - Use only within explicit authorization and the stated rules of engagement. ## When NOT to Use - Do not treat this skill as permission to access, test, or change a target. - Do not convert missing evidence into a clean result or a stronger claim. ## Build the plan 1. **State the objective and posture.** Define the smallest proof that satisfies the engagement objective. Choose maximum stealth, balanced, or speed priority. 2. **Identify critical information.** Record what would expose the operation: infrastructure, identities, tooling, credentials, timing, and target pattern. 3. **Model the observers.** Name the people and controls able to see the work and the telemetry available to them. Unknown visibility increases uncertainty; it does not count as absence of monitoring. 4. **Reduce the chain.** Remove actions that do not directly advance the stated objective. Being in scope makes an action permissible, not necessary. 5. **Account for four surfaces.** For every remaining action, describe disk, memory, log, and network artifacts. If a surface has no expected artifact, say why. Never leave it blank. 6. **Score before mitigation.** Estimate detection probability from `0.0` to `1.0`, detection impact from `1` to `10`, and success value from `1` to `10`. Compute `risk = probability × impact` and record the evidence behind the estimates. 7. **Choose and link countermeasures.** Each countermeasure references the exposure it changes. Explicitly accept any remaining exposure; silence is not acceptance. Recalculate residual probability and risk. 8. **Set stop and recovery conditions.** Give each action a concrete abort condition. Cover every artifact with removal, reversion, expiration verification, authorized retention, or documentation as unremovable. 9. **Plan the detection review.** Name the telemetry or coordination evidence that will confirm what fired and what did not. ## Decision thresholds | Initial or residual risk | Success value | Consistent decision | |---|---:|---| | `< 3` | `> 5` | execute | | `3` to `< 5` | `> 7` | execute with caution | | `5` to `8` | any | mitigate first | | `> 8` | any | abort or request authorization | The source method leaves low-value gaps between its explicit thresholds. In those gaps, abort or request authorization rather than inventing permission. At the shared boundary of `5`, use the safer `mitigate-first` decision. ## Judgment calls - **Probability needs evidence.** Base it on observed controls, telemetry, baselines, and prior validation. A precise decimal with no evidence is still a guess. - **A linked countermeasure may still be weak.** A complete record shows that every exposure was addressed or accepted; it cannot prove the proposed change reduces detection. - **Normal-looking is environment-specific.** Native tooling and business-hour activity can be more visible when the baseline says they are unusual. - **Residual risk is a new claim.** Explain what changed between the initial and residual probability. Do not lower the number merely because a mitigation was written down. - **Authorization remains external.** A complete record validates the document, not the action. Required human approval still governs execution. ## Rationalizations to reject | Thought | Reality | |---|---| | "It is in scope, so we should test it." | Scope permits an action. The objective decides whether it belongs in this chain. | | "This native command will blend in." | Native is not invisible. Decide from the target's baseline and monitored channels. | | "We will clean it up afterward." | Logs and network records may be immutable. Name them and document them instead of promising deletion. | | "The risk score is low enough." | A score without evidence for probability and impact is decorative arithmetic. | | "The countermeasure handles it." | State which exposure changes and why the residual probability is lower. | | "We can decide the stop condition live." | Fatigue and proximity to the objective bias the operator toward continuing. Set the stop before execution. | | "A complete record means go." | It means the plan is internally consistent. Authorization and operator judgment still control execution. |