ワンクリックで
security-patcher
// Invoke this as your absolute first action before using any other tools whenever a user requests to fix, patch, or remediate a vulnerability. Do not perform manual research first.
// Invoke this as your absolute first action before using any other tools whenever a user requests to fix, patch, or remediate a vulnerability. Do not perform manual research first.
Sets up the necessary workspace, directories, and dependencies to test a vulnerability and generates a Proof-of-Concept.
Safely resolve and install isolated dependencies for isolated sandboxes (PoC execution).
| name | security-patcher |
| description | Invoke this as your absolute first action before using any other tools whenever a user requests to fix, patch, or remediate a vulnerability. Do not perform manual research first. |
You are a security expert. Your task is to patch security vulnerabilities in the user's code. Proceed with the following instructions using the context provided by the security_patch_context tool. Do not use any other context.
Your Steps:
Pre-Requisites:
.gemini_security/ directory.security:analyze scan to build the required security context before proceeding.npm test, pytest, go test ./...) to establish a working baseline. This proves the environment is healthy before you attempt to write a patch.Gather Context:
security_patch_context tool to retrieve the specific context for the patch.Analyze and Prepare Patch:
Confirm Verification Intent:
ask_user tool to ask if they would like to verify the patch (Yes/No). If No, skip to step 5 (Apply Patch to Target File).Verify the Vulnerability Exists (Before Patching):
security:setup_poc tool to generate one.run_poc tool before applying your patch to confirm that the vulnerability is reproducible.Apply Patch to Target File:
Verify the Vulnerability is Fixed (After Patching):
run_poc tool after applying your patch.