Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

security-assessment安全评估

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

188

周安装

8

GitHub Stars

公开资料未说明

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:security-assessment(安全评估)
来源仓库:https://github.com/jmagly/ai-writing-guide
仓库路径:skills/security-assessment
安装命令:
npx skills add jmagly/ai-writing-guide --skill "security-assessment"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add jmagly/ai-writing-guide --skill "security-assessment"

简介

security-assessment 用于发现并安装 AI 代理的技能。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等平台的能力扩展。
  • 通过 npx skills add 命令从 jmagly/ai-writing-guide 仓库安装。
  • 需确认网络连接正常及对目标仓库的访问权限。
  • 建议查阅原始 README 了解技能功能与使用限制。

SKILL.md

namespace
aiwg
name
security-assessment
platforms
[all]
description
Execute STRIDE threat modeling, vulnerability scanning, and security control validation with risk scoring

security-assessment

Execute threat modeling, vulnerability scanning, and security control validation.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

  • "STRIDE [component]" → threat model using STRIDE framework
  • "OWASP check" → OWASP Top 10 validation
  • "SAST" / "DAST" → static/dynamic application security testing
  • "CVE scan" → known vulnerability enumeration
  • "is the code safe" → colloquial security check
  • "pentest prep" → pre-penetration-test readiness

Purpose

This skill orchestrates comprehensive security assessment through:

  • STRIDE threat modeling
  • Vulnerability pattern detection
  • Security control validation
  • Compliance verification
  • Risk scoring and prioritization

Behavior

When triggered, this skill:

  1. Determines scope:

- Component-level, system-level, or full assessment - Identify assets and trust boundaries - Load existing threat model if available

  1. Executes threat modeling:

- Dispatch Security Architect for STRIDE analysis - Enumerate threats per component - Identify attack vectors

  1. Runs vulnerability patterns:

- Dispatch Security Auditor for pattern scanning - Check OWASP Top 10 - Identify secrets exposure risks - Review dependency vulnerabilities

  1. Validates controls:

- Dispatch Security Gatekeeper - Map controls to threats - Verify implementation - Check coverage gaps

  1. Assesses privacy:

- Dispatch Privacy Officer (if PII involved) - Check data handling - Verify consent mechanisms

  1. Generates report:

- Risk-ranked findings - CVSS scores where applicable - Remediation guidance - Compliance status

STRIDE Threat Categories

CategoryDescriptionExample
SpoofingImpersonating something/someoneFake user credentials
TamperingModifying data or codeSQL injection
RepudiationDenying actionsMissing audit logs
Information DisclosureExposing informationData leakage
Denial of ServiceDisrupting availabilityResource exhaustion
Elevation of PrivilegeGaining unauthorized accessBroken access control

Assessment Flow

┌─────────────────────────────────────────────────────────┐
│ 1. SCOPE IDENTIFICATION                                 │
│    • Define assessment boundary                         │
│    • Identify assets (data, services, infrastructure)   │
│    • Map trust boundaries                               │
│    • Load existing threat model (if any)                │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│ 2. THREAT MODELING (Security Architect)                 │
│    • Data flow analysis                                 │
│    • STRIDE enumeration per component                   │
│    • Attack vector identification                       │
│    • Trust boundary crossing analysis                   │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│ 3. VULNERABILITY SCANNING (Security Auditor)            │
│    • OWASP Top 10 pattern check                         │
│    • Secrets exposure scan                              │
│    • Dependency vulnerability check                     │
│    • Configuration review                               │
│    • Code pattern analysis                              │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│ 4. CONTROL VALIDATION (Security Gatekeeper)             │
│    • Map security requirements to controls              │
│    • Verify control implementation                      │
│    • Check control effectiveness                        │
│    • Identify coverage gaps                             │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│ 5. PRIVACY ASSESSMENT (Privacy Officer) [if PII]        │
│    • Data inventory review                              │
│    • Consent mechanism validation                       │
│    • Data retention compliance                          │
│    • Cross-border transfer assessment                   │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│ 6. RISK SCORING & REPORTING                             │
│    • Calculate CVSS scores                              │
│    • Prioritize by risk (likelihood × impact)           │
│    • Generate remediation guidance                      │
│    • Produce assessment report                          │
└─────────────────────────────────────────────────────────┘

OWASP Top 10 Checks

#CategoryPatterns Checked
A01Broken Access ControlRBAC, ABAC, path traversal, CORS
A02Cryptographic FailuresWeak algorithms, key management, TLS
A03InjectionSQL, NoSQL, LDAP, OS command, XSS
A04Insecure DesignThreat modeling gaps, missing controls
A05Security MisconfigurationDefaults, unnecessary features, verbose errors
A06Vulnerable ComponentsOutdated dependencies, known CVEs
A07Auth FailuresPassword policies, MFA, session management
A08Data Integrity FailuresCI/CD security, unsigned updates
A09Logging FailuresMissing logs, sensitive data in logs
A10SSRFInternal resource access, URL validation

Severity Scoring

CVSS Base Metrics

severity_levels:
  critical:
    cvss_range: [9.0, 10.0]
    description: Immediate remediation required
    sla: 24 hours

  high:
    cvss_range: [7.0, 8.9]
    description: Remediation within sprint
    sla: 7 days

  medium:
    cvss_range: [4.0, 6.9]
    description: Plan remediation
    sla: 30 days

  low:
    cvss_range: [0.1, 3.9]
    description: Address as time permits
    sla: 90 days

  informational:
    cvss_range: [0.0, 0.0]
    description: Awareness only
    sla: none

Assessment Report Format

# Security Assessment Report

**Date**: 2025-12-08
**Scope**: Full System Assessment
**Assessors**: security-architect, security-auditor, security-gatekeeper

## Executive Summary

| Severity | Count |
|----------|-------|
| Critical | 0 |
| High | 2 |
| Medium | 5 |
| Low | 8 |
| Informational | 3 |

**Overall Risk Level**: MEDIUM
**Recommendation**: Address high-severity findings before production deployment

## Threat Model Summary

### Trust Boundaries
1. External → API Gateway
2. API Gateway → Internal Services
3. Services → Database

### STRIDE Analysis

| Component | S | T | R | I | D | E | Total |
|-----------|---|---|---|---|---|---|-------|
| API Gateway | 2 | 1 | 0 | 1 | 1 | 1 | 6 |
| Auth Service | 3 | 1 | 1 | 2 | 0 | 2 | 9 |
| Data Service | 1 | 2 | 1 | 3 | 1 | 1 | 9 |

## Findings

### HIGH-001: Insufficient Input Validation
- **Severity**: High (CVSS 7.5)
- **Component**: API Gateway
- **Category**: A03 Injection
- **Description**: User input not sanitized before database query
- **Impact**: SQL injection possible, data exfiltration risk
- **Remediation**: Implement parameterized queries, add input validation
- **Status**: Open

### HIGH-002: Missing Rate Limiting
- **Severity**: High (CVSS 7.2)
- **Component**: API Gateway
- **Category**: A05 Denial of Service
- **Description**: No rate limiting on authentication endpoints
- **Impact**: Brute force attacks, credential stuffing
- **Remediation**: Implement rate limiting, add account lockout
- **Status**: Open

### MEDIUM-001: Verbose Error Messages
...

## Control Assessment

| Control | Requirement | Status | Gap |
|---------|-------------|--------|-----|
| Authentication | MFA for privileged users | ✅ Implemented | None |
| Authorization | RBAC with least privilege | ⚠️ Partial | Admin role too broad |
| Encryption | TLS 1.2+ for transit | ✅ Implemented | None |
| Encryption | AES-256 at rest | ⚠️ Partial | Logs not encrypted |
| Logging | Security event logging | ✅ Implemented | None |
| Monitoring | Real-time alerting | ❌ Missing | Not configured |

## Compliance Status

| Framework | Status | Gaps |
|-----------|--------|------|
| OWASP Top 10 | 7/10 compliant | A03, A05, A09 |
| SOC 2 | Partial | Monitoring, encryption |
| GDPR | Compliant | None identified |

## Remediation Roadmap

### Immediate (24-48 hours)
- [ ] Fix SQL injection vulnerability (HIGH-001)
- [ ] Implement rate limiting (HIGH-002)

### Short-term (1-2 weeks)
- [ ] Reduce admin role permissions
- [ ] Encrypt log storage
- [ ] Configure monitoring alerts

### Medium-term (1 month)
- [ ] Address medium-severity findings
- [ ] Complete SOC 2 gap remediation

## Next Assessment

Recommended: 30 days or after major changes

Usage Examples

Full Assessment

User: "Run security review"

Skill orchestrates:
1. Load current architecture
2. Run STRIDE analysis
3. Scan for OWASP patterns
4. Validate controls
5. Generate report

Output:
"Security Assessment Complete

Findings: 0 Critical, 2 High, 5 Medium, 8 Low
Risk Level: MEDIUM

Blocking Issues:
- HIGH-001: SQL injection risk
- HIGH-002: Missing rate limiting

Report: .aiwg/security/assessment-20251208.md"

Component Assessment

User: "Threat model the authentication service"

Skill focuses on:
- Auth service components only
- STRIDE for auth flows
- Auth-specific vulnerabilities
- Control validation for auth

Output: Targeted threat model and findings

Control Validation Only

User: "Validate security controls"

Skill runs:
- Control mapping
- Implementation verification
- Gap analysis

Output: Control assessment summary

Integration

This skill uses:

  • parallel-dispatch: Launch security agents concurrently
  • project-awareness: Get architecture and component info
  • artifact-metadata: Track assessment artifacts

Agent Orchestration

agents:
  threat_modeling:
    agent: security-architect
    focus: STRIDE analysis, attack vectors, trust boundaries

  vulnerability_scanning:
    agent: security-auditor
    focus: OWASP patterns, secrets, dependencies, configuration

  control_validation:
    agent: security-gatekeeper
    focus: Control mapping, implementation, effectiveness

  privacy_assessment:
    agent: privacy-officer
    focus: PII handling, consent, retention, transfers
    condition: has_pii == true

Output Locations

  • Assessment report: .aiwg/security/assessment-{date}.md
  • Threat model: .aiwg/security/threat-model.md
  • Control matrix: .aiwg/security/control-matrix.md
  • Findings tracker: .aiwg/security/findings/

References

  • STRIDE methodology: Microsoft Threat Modeling
  • OWASP Top 10: https://owasp.org/Top10/
  • CVSS Calculator: https://www.first.org/cvss/calculator/3.1
  • Security templates: templates/security/

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

windsurf

28.58%
按下载量换算19

OpenCode

22.91%
按下载量换算15

Codex

18.31%
按下载量换算12

Claude Code

12.66%
按下载量换算8

Antigravity

8.15%
按下载量换算5

Gemini CLI

3.65%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills