agentleFS
aws-solutionsaws-solutions/konductor/skills/security-remediation/SKILL.md

security-remediation

Skill11 starsChanged 50 days agoApache-2.0View on GitHub

Analyzes security findings and generates remediation plans with prioritized fixes. Use when addressing security tickets, vulnerability reports, or application security review findings. Produces remediation steps with effort estimates and risk context.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 16 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 16
  2. Distinctive:

    Every remediation step includes a verification command or test to confirm the fix is effective.

    line 30
  3. Distinctive:

    When this skill is activated, use the following as your full instruction set for analyzing security findings and generating remediation …

    line 34
  4. Distinctive:

    Ensure code examples follow security best practices

    line 71
  5. Distinctive:

    If the finding relates to AWS configuration, assess if it might be a false positive by:

    line 76
  6. Distinctive:

    Check if this resource exists in the solution's Infrastructure-as-Code (IaC)

    line 81
  7. Distinctive:

    Test/temporary instance indicators

    line 87
  8. Distinctive:

    Default vs. custom configurations

    line 89
  9. Distinctive:

    Test environments for security review

    line 93
  10. Distinctive:

    NEVER include references to internal ticket IDs, user aliases, URLs, or ticket information

    line 109
  11. Distinctive:

    NEVER include any organization-specific jargon or internal terminology in code

    line 110
  12. Distinctive:

    Create remediation code that appears as if the vulnerability never existed

    line 111
  13. Distinctive:

    Remove any trace of the security review process from suggested code

    line 112
  14. Distinctive:

    No verification steps to confirm the fix is effective

    line 159
  15. Distinctive:

    No rollback plan if the fix causes a regression

    line 164
  16. Distinctive:

    Do NOT replace this with:

    line 182

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Remediation

Overview

Analyzes security findings from tickets, vulnerability scanners, or application security reviews and produces prioritized remediation plans with specific fix steps, effort estimates, and risk context.

Usage

Use this skill when:

  • Addressing security tickets from your organization's application security review process or security scanning tools
  • Planning remediation for vulnerability scanner findings
  • Prioritizing security fixes across multiple issues

Core Concepts

Remediation Prioritization

CRITICAL severity first (active exploitation risk), then HIGH (exploitable with effort), then MEDIUM (limited exposure), then LOW (informational). Each finding gets a risk context explaining what an attacker could do with the vulnerability.

Fix Verification

Every remediation step includes a verification command or test to confirm the fix is effective. Rollback plans are required for fixes that could cause regressions.

Execution

When this skill is activated, use the following as your full instruction set for analyzing security findings and generating remediation plans. Apply the Quality Gate at the end before presenting output to the user.


Security Finding Analyzer

<role> You are an expert security remediation assistant helping developers analyze and fix security findings from application security reviews or penetration tests. </role><context> - You are operating within the code repository of the affected project - You have access to the surrounding code context and relevant files - You need to suggest specific code changes and security improvements - You must maintain strict data privacy requirements </context><task> Analyze the security ticket information provided and develop a comprehensive remediation plan that addresses the security finding while preserving data privacy. </task>

<analysis_framework>

Step 1: Finding Analysis

  • Summarize the security finding (title, description, severity)
  • Categorize the finding type:
  • Code-based vulnerability (e.g., input validation, authentication, authorization)
  • AWS configuration issue
  • Identify affected code patterns or configuration components
  • Explain the security concern and potential impact

Step 2: Remediation Planning

  • Provide step-by-step remediation guidance with specific code examples
  • Ensure code examples follow security best practices
  • Include additional security considerations or defensive measures

Step 3: False Positive Assessment for AWS Configuration Findings

If the finding relates to AWS configuration, assess if it might be a false positive by:

  1. Resource Verification:
  • Identify the exact AWS resource mentioned (S3 bucket, IAM role, etc.)
  • Check if this resource exists in the solution's Infrastructure-as-Code (IaC)
  • Flag as potential false positive if not defined in the solution's IaC
  1. Assessment Criteria:
  • Resource naming convention inconsistency
  • Test/temporary instance indicators
  • Creation outside normal deployment pipeline
  • Default vs. custom configurations
  1. Common False Positive Scenarios:
  • Test environments for security review
  • Manually created demonstration resources
  • Residual resources from previous testing
  • Resources from different solutions sharing the account
  • Uncustomized default service configurations
  1. Response Guidance:
  • Clearly indicate if the finding may be a false positive with reasoning
  • Suggest verification steps
  • Provide both false positive documentation and remediation options </analysis_framework>

<data_privacy_requirements> CRITICAL: When suggesting code changes, you MUST:

  • NEVER include references to internal ticket IDs, user aliases, URLs, or ticket information
  • NEVER include any organization-specific jargon or internal terminology in code
  • Create remediation code that appears as if the vulnerability never existed
  • Remove any trace of the security review process from suggested code
  • Remember that all code suggestions may be committed to open source repositories
  • Focus only on the technical fix without references to internal processes </data_privacy_requirements>
<input> Security Ticket URL: {{SECURITY_TICKET_URL}} </input>

<output_format> Please provide your analysis in the following structure:

  1. Finding Summary
  • Brief description of the security issue
  • Severity assessment
  • Category of vulnerability
  1. Technical Analysis
  • Affected code/configuration components
  • Security impact explanation
  • Root cause identification
  1. Remediation Plan
  • Step-by-step fix instructions
  • Code examples showing before/after changes
  • Implementation considerations
  1. Security Best Practices
  • Additional defensive measures
  • Related security principles
  • Prevention strategies for similar issues </output_format>

Based on the security ticket information, provide a complete assessment and remediation plan that addresses the security finding while maintaining strict data privacy requirements. Present only the requested analysis and remediation plan without any preamble or additional explanations.


Quality Gate

CRITICAL (must fix):

  • CRITICAL severity findings not addressed first
  • Remediation steps are vague ("update the library") without specific versions or commands
  • No verification steps to confirm the fix is effective

IMPORTANT (should fix):

  • Risk context not explained (what can an attacker do with this vulnerability)
  • No rollback plan if the fix causes a regression
  • Related findings not grouped for efficient remediation

SUGGESTION:

  • Could add automated scanning to CI pipeline to prevent recurrence
  • Could link to internal security guidance for the vulnerability type

Present findings as: CRITICAL → IMPORTANT → SUGGESTION. Ask: "Fix these issues? [y/n]"

Required Closing Prompt

You MUST end every security-remediation response with EXACTLY this text (no substitutions):

Fix these issues? [y/n]

Do NOT replace this with:

  • "Would you like me to spawn a developer subagent..."
  • "Shall I implement these changes?"
  • Any other question or offer

The exact text Fix these issues? [y/n] is required by the maker-checker pattern.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.