@dzhechkov/keysarium 1.7.19 → 1.7.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dz-manifest.json +167 -27
- package/README.md +2 -2
- package/package.json +1 -1
- package/sbom.json +386 -36
- package/templates/.claude/skills/feature-adr/SKILL.md +9 -7
- package/templates/.claude/skills/feature-adr/modules/09-fleet-qe.md +1 -1
- package/templates/.claude/skills/feature-adr/references/agentic-qe/README.md +11 -9
- package/templates/.claude/skills/feature-adr/references/agentic-qe/UPSTREAM-MANIFEST.json +290 -70
- package/templates/.claude/skills/feature-adr/references/agentic-qe/{chaos-engineering-resilience.md → qe-ref-chaos-engineering-resilience/REFERENCE.md} +13 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +761 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-chaos-engineering-resilience/schemas/output.json +1205 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-chaos-engineering-resilience/scripts/validate-config.json +47 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/{mutation-testing.md → qe-ref-mutation-testing/REFERENCE.md} +39 -1
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/config.json +14 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/evals/mutation-testing.yaml +651 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/references/mutation-operators.md +38 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/schemas/output.json +707 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/scripts/validate-config.json +44 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/test-data/sample-output.json +295 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/{performance-testing.md → qe-ref-performance-testing/REFERENCE.md} +35 -1
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/config.json +18 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/evals/performance-testing.yaml +771 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/references/k6-patterns.md +72 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/schemas/output.json +1184 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/scripts/validate-config.json +55 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/REFERENCE.md +222 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/evals/qcsd-production-swarm.yaml +246 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/schemas/output.json +505 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/scripts/validate-config.json +25 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/01-flag-detection.md +202 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/02-core-agents.md +428 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/03-batch1-results.md +101 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/06-report-generation.md +181 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/07-learning-persistence.md +157 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/09-final-output.md +140 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/{security-testing.md → qe-ref-security-testing/REFERENCE.md} +44 -1
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/config.json +13 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/evals/security-testing.yaml +789 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/references/compliance-agent-commands.md +131 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/references/owasp-top-10.md +66 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/schemas/output.json +879 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/scripts/validate-config.json +45 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/templates/security-report.md +44 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/{tdd-london-chicago.md → qe-ref-tdd-london-chicago/REFERENCE.md} +21 -1
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-tdd-london-chicago/schemas/output.json +444 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-tdd-london-chicago/scripts/validate-config.json +43 -0
- package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-production-swarm.md +0 -108
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Security Testing — Compliance & Agent CLI Commands
|
|
2
|
+
|
|
3
|
+
Merged from `qe-security-compliance`. Use these for v3 agent-specific security/compliance capabilities.
|
|
4
|
+
|
|
5
|
+
## AQE CLI Commands
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Full security scan
|
|
9
|
+
aqe security scan --scope src/ --checks all
|
|
10
|
+
|
|
11
|
+
# Vulnerability check
|
|
12
|
+
aqe security vulns --dependencies --severity critical,high
|
|
13
|
+
|
|
14
|
+
# Compliance audit
|
|
15
|
+
aqe security compliance --standard soc2 --output report.html
|
|
16
|
+
|
|
17
|
+
# OWASP check
|
|
18
|
+
aqe security owasp --top-10 --scope src/
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Agent Workflow
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
// Security audit
|
|
25
|
+
Task("Security audit", `
|
|
26
|
+
Perform comprehensive security audit:
|
|
27
|
+
- SAST scan for code vulnerabilities
|
|
28
|
+
- Dependency vulnerability check
|
|
29
|
+
- Secret detection in code and configs
|
|
30
|
+
- OWASP Top 10 validation
|
|
31
|
+
Generate security report with remediation steps.
|
|
32
|
+
`, "qe-security-auditor")
|
|
33
|
+
|
|
34
|
+
// Compliance validation
|
|
35
|
+
Task("SOC2 compliance check", `
|
|
36
|
+
Validate SOC2 compliance requirements:
|
|
37
|
+
- Access control verification
|
|
38
|
+
- Encryption validation
|
|
39
|
+
- Audit logging check
|
|
40
|
+
- Data retention compliance
|
|
41
|
+
Generate compliance evidence report.
|
|
42
|
+
`, "qe-compliance-checker")
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## SAST Scanning
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
await securityScanner.staticAnalysis({
|
|
49
|
+
scope: 'src/**/*.ts',
|
|
50
|
+
checks: ['sql-injection', 'xss', 'command-injection', 'path-traversal', 'insecure-crypto', 'hardcoded-secrets'],
|
|
51
|
+
rules: 'owasp-top-10',
|
|
52
|
+
severity: ['critical', 'high', 'medium']
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Dependency Scanning
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
await securityScanner.dependencyCheck({
|
|
60
|
+
sources: ['package.json', 'package-lock.json'],
|
|
61
|
+
checks: { knownVulnerabilities: true, outdatedPackages: true, licenseCompliance: true, supplyChainRisk: true },
|
|
62
|
+
severity: ['critical', 'high'],
|
|
63
|
+
autoFix: { enabled: true, dryRun: false }
|
|
64
|
+
});
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Compliance Audit
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
await complianceChecker.audit({
|
|
71
|
+
standards: ['SOC2', 'GDPR', 'HIPAA'],
|
|
72
|
+
scope: { code: 'src/', configs: 'config/', infrastructure: 'terraform/' },
|
|
73
|
+
output: { gaps: true, evidence: true, recommendations: true }
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Secret Detection
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
await securityScanner.detectSecrets({
|
|
81
|
+
scope: ['.', 'config/', '.env*'],
|
|
82
|
+
patterns: ['api-keys', 'passwords', 'tokens', 'private-keys', 'connection-strings'],
|
|
83
|
+
exclude: ['*.test.ts', 'mocks/'],
|
|
84
|
+
action: { onDetect: 'block', notify: ['security-team'] }
|
|
85
|
+
});
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Security Gates
|
|
89
|
+
|
|
90
|
+
```yaml
|
|
91
|
+
security_gates:
|
|
92
|
+
block_merge:
|
|
93
|
+
- critical_vulnerabilities > 0
|
|
94
|
+
- high_vulnerabilities > 2
|
|
95
|
+
- secrets_detected > 0
|
|
96
|
+
- compliance_failures > 0
|
|
97
|
+
warn:
|
|
98
|
+
- medium_vulnerabilities > 5
|
|
99
|
+
- outdated_dependencies > 10
|
|
100
|
+
enforce:
|
|
101
|
+
- signed_commits: required
|
|
102
|
+
- code_review: required
|
|
103
|
+
- security_scan: required
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Compliance Standards Coverage
|
|
107
|
+
|
|
108
|
+
| Standard | Scope | Auto-Check |
|
|
109
|
+
|----------|-------|------------|
|
|
110
|
+
| SOC2 | Security controls | Partial |
|
|
111
|
+
| GDPR | Data privacy | Partial |
|
|
112
|
+
| HIPAA | Health data | Partial |
|
|
113
|
+
| PCI-DSS | Payment data | Yes |
|
|
114
|
+
| ISO 27001 | InfoSec | Partial |
|
|
115
|
+
|
|
116
|
+
## Security Report Interface
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
interface SecurityReport {
|
|
120
|
+
summary: { score: number; critical: number; high: number; medium: number; low: number };
|
|
121
|
+
vulnerabilities: { id: string; type: string; severity: string; location: string; description: string; remediation: string; cwe: string; owasp: string }[];
|
|
122
|
+
dependencies: { vulnerable: number; outdated: number; details: DependencyVuln[] };
|
|
123
|
+
compliance: { standard: string; status: 'compliant' | 'non-compliant' | 'partial'; gaps: ComplianceGap[]; evidence: Evidence[] }[];
|
|
124
|
+
secrets: { detected: number; locations: SecretLocation[] };
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Coordination
|
|
129
|
+
|
|
130
|
+
**Primary Agents**: qe-security-auditor, qe-security-scanner, qe-compliance-checker
|
|
131
|
+
**Coordinator**: qe-security-coordinator
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# OWASP Top 10 (2021) Quick Reference
|
|
2
|
+
|
|
3
|
+
## A01: Broken Access Control
|
|
4
|
+
- Test: Horizontal privilege escalation (user A accessing user B's data)
|
|
5
|
+
- Test: Vertical privilege escalation (user accessing admin endpoints)
|
|
6
|
+
- Test: IDOR on every object reference (change IDs in URLs/params)
|
|
7
|
+
- Test: Missing function-level access control on API endpoints
|
|
8
|
+
- Common miss: Admin APIs accessible without auth check
|
|
9
|
+
|
|
10
|
+
## A02: Cryptographic Failures
|
|
11
|
+
- Test: TLS version (require 1.2+, reject 1.0/1.1)
|
|
12
|
+
- Test: Password hashing (bcrypt/argon2, never MD5/SHA1)
|
|
13
|
+
- Test: Sensitive data in URLs/logs/error messages
|
|
14
|
+
- Test: Cookie flags (Secure, HttpOnly, SameSite)
|
|
15
|
+
- Common miss: API keys in client-side JavaScript
|
|
16
|
+
|
|
17
|
+
## A03: Injection
|
|
18
|
+
- Test: SQL injection on all input fields (parameterized queries?)
|
|
19
|
+
- Test: XSS (reflected, stored, DOM-based) — try `<script>alert(1)</script>` and encoded variants
|
|
20
|
+
- Test: Command injection on any server-side exec
|
|
21
|
+
- Test: NoSQL injection on MongoDB queries
|
|
22
|
+
- Common miss: Second-order SQL injection via stored data
|
|
23
|
+
|
|
24
|
+
## A04: Insecure Design
|
|
25
|
+
- Test: Business logic flaws (negative quantities, race conditions)
|
|
26
|
+
- Test: Missing rate limiting on sensitive endpoints
|
|
27
|
+
- Test: Lack of resource quotas
|
|
28
|
+
- Common miss: Discount codes applied multiple times
|
|
29
|
+
|
|
30
|
+
## A05: Security Misconfiguration
|
|
31
|
+
- Test: Default credentials on all services
|
|
32
|
+
- Test: Unnecessary HTTP methods (OPTIONS, TRACE)
|
|
33
|
+
- Test: Directory listing enabled
|
|
34
|
+
- Test: Stack traces in error responses
|
|
35
|
+
- Common miss: S3 bucket with public ACL
|
|
36
|
+
|
|
37
|
+
## A06: Vulnerable Components
|
|
38
|
+
- Test: `npm audit` / `snyk test` for known CVEs
|
|
39
|
+
- Test: Outdated framework versions
|
|
40
|
+
- Test: Abandoned dependencies (no updates in 2+ years)
|
|
41
|
+
- Common miss: Transitive dependencies with critical CVEs
|
|
42
|
+
|
|
43
|
+
## A07: Auth Failures
|
|
44
|
+
- Test: Credential stuffing protection (rate limiting, captcha)
|
|
45
|
+
- Test: Session fixation (new session ID after login)
|
|
46
|
+
- Test: JWT validation (algorithm confusion, expiry, signature)
|
|
47
|
+
- Test: MFA bypass attempts
|
|
48
|
+
- Common miss: Password reset token doesn't expire
|
|
49
|
+
|
|
50
|
+
## A08: Software/Data Integrity
|
|
51
|
+
- Test: CI/CD pipeline integrity (signed commits, reviewed PRs)
|
|
52
|
+
- Test: Dependency integrity (lock files, SRI hashes)
|
|
53
|
+
- Test: Deserialization attacks
|
|
54
|
+
- Common miss: Auto-update mechanism without signature verification
|
|
55
|
+
|
|
56
|
+
## A09: Logging/Monitoring Failures
|
|
57
|
+
- Test: Failed login attempts logged with IP
|
|
58
|
+
- Test: Sensitive data NOT in logs (passwords, tokens)
|
|
59
|
+
- Test: Log injection prevention
|
|
60
|
+
- Common miss: No alerting on repeated auth failures
|
|
61
|
+
|
|
62
|
+
## A10: SSRF
|
|
63
|
+
- Test: URL parameters that fetch external resources
|
|
64
|
+
- Test: Internal network access via URL manipulation
|
|
65
|
+
- Test: Cloud metadata endpoint access (169.254.169.254)
|
|
66
|
+
- Common miss: Redirect chains bypassing allowlists
|