Security Hardening
ancoleman/ai-design-components
Reduces attack surface across OS, container, cloud, network, and database layers using CIS Benchmarks and zero-trust principles.
Threat modeling before coding, STRIDE methodology, defense in depth, security controls in SDLC
$ npx skills add Hack23/cia --skill security-by-design -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Hack23/cia security-by-design --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/security-by-design .claude/skills/security-by-design && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "security-by-design" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/security-by-design into .claude/skills/security-by-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-by-design", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Hack23/cia/tree/master/.github/skills/security-by-designType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Hack23/cia --skill security-by-design -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Hack23/cia security-by-design --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/security-by-design .agents/skills/security-by-design && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "security-by-design" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/security-by-design into .agents/skills/security-by-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-by-design", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Hack23/cia --skill security-by-design -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Hack23/cia security-by-design --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/security-by-design .cursor/skills/security-by-design && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "security-by-design" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/security-by-design into .cursor/skills/security-by-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-by-design", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Hack23/cia.git --path .github/skills/security-by-design--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Hack23/cia --skill security-by-design -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Hack23/cia security-by-design --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/security-by-design .gemini/skills/security-by-design && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "security-by-design" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/security-by-design into .gemini/skills/security-by-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-by-design", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Hack23/cia security-by-designInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Hack23/cia --skill security-by-design -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/security-by-design .github/skills/security-by-design && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "security-by-design" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/security-by-design into .github/skills/security-by-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-by-design", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Hack23/cia --skill security-by-design -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Hack23/cia security-by-design --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/security-by-design .opencode/skills/security-by-design && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "security-by-design" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/security-by-design into .opencode/skills/security-by-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-by-design", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
security-by-designThreat modeling before coding, STRIDE methodology, defense in depth, security controls in SDLC
Security By Design is an agent skill from Hack23/cia. Threat modeling before coding, STRIDE methodology, defense in depth, security controls in SDLC
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Security, covering Threat modeling and Secure coding. The repository describes itself as: Citizen Intelligence Agency. Open-source intelligence platform analyzing Swedish political activities using AI and data visualization. Tracks politicians, government… The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 6a9797b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are java).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comowasp.orglearn.microsoft.comcsrc.nist.govFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Security By Design loads about 1.9k tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 214 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Hack23/cia at commit 6a9797b, republished under its Apache-2.0 licence (© Hack23). 214 words, ~1,910 tokens.
.claude/skills/security-by-design/SKILL.md (or your agent's skills folder).This skill integrates security into every phase of the CIA platform's software development lifecycle (SDLC). It ensures threats are identified and mitigated before code is written, following defense-in-depth principles aligned with Hack23 ISMS Secure Development Policy.
Apply this skill when:
Do NOT use for:
SDLC Phase Security Activity
│
├─ REQUIREMENTS
│ ├─ Identify security requirements (abuse cases)
│ ├─ Define data classification for new features
│ └─ Document compliance requirements (GDPR, NIS2)
│
├─ DESIGN
│ ├─ Threat model using STRIDE
│ ├─ Define trust boundaries
│ ├─ Select security controls
│ └─ Review architecture for defense in depth
│
├─ IMPLEMENTATION
│ ├─ Follow secure coding standards
│ ├─ Use approved libraries and frameworks
│ ├─ Implement input validation at boundaries
│ └─ Apply principle of least privilege
│
├─ TESTING
│ ├─ Security unit tests
│ ├─ SAST scanning (CodeQL, SonarCloud)
│ ├─ DAST scanning (ZAP)
│ └─ Dependency vulnerability check (OWASP)
│
├─ DEPLOYMENT
│ ├─ Security configuration review
│ ├─ Infrastructure hardening verification
│ ├─ Secrets management validation
│ └─ Monitoring and alerting setup
│
└─ MAINTENANCE
├─ Vulnerability patching cadence
├─ Security incident response
├─ Periodic threat model updates
└─ Dependency update reviewsFeature: [Name]
Data Classification: [PUBLIC/INTERNAL/CONFIDENTIAL/RESTRICTED]
Trust Boundary: [User→App / App→DB / App→ExternalAPI]
┌─────────────┬──────────────────────────────────────────┐
│ STRIDE │ Assessment │
├─────────────┼──────────────────────────────────────────┤
│ Spoofing │ Can an attacker impersonate a user? │
│ Tampering │ Can data be modified in transit/storage? │
│ Repudiation │ Can actions be denied without proof? │
│ Info Disc. │ Can sensitive data leak? │
│ DoS │ Can service be overwhelmed? │
│ Elev. Priv. │ Can a user gain unauthorized access? │
└─────────────┴──────────────────────────────────────────┘Feature: Politician Risk Score Dashboard
Data Classification: INTERNAL
Trust Boundaries: Browser→Vaadin→Service→Database
Spoofing:
Threat: Unauthenticated access to risk scores
Control: Spring Security authentication required
Code: @PreAuthorize("hasRole('USER')")
Tampering:
Threat: Manipulation of risk score algorithm inputs
Control: Read-only database transactions for analysis
Code: @Transactional(readOnly = true)
Repudiation:
Threat: User denies viewing sensitive risk data
Control: Audit logging of all dashboard access
Code: AuditService.logAccess(userId, "RISK_DASHBOARD")
Information Disclosure:
Threat: Risk scores leaked to unauthorized users
Control: Role-based access, no client-side caching
Code: Cache-Control: no-store, Pragma: no-cache
Denial of Service:
Threat: Complex queries overloading database
Control: Query timeout, connection pool limits
Code: spring.datasource.hikari.connectionTimeout=30000
Elevation of Privilege:
Threat: Regular user accessing admin risk controls
Control: Method-level security annotations
Code: @Secured("ROLE_ADMIN")Layer 1: NETWORK
├─ AWS VPC with private subnets
├─ Security groups (least privilege)
├─ WAF rules for common attacks
└─ DDoS protection (AWS Shield)
Layer 2: APPLICATION
├─ Spring Security filter chain
├─ CSRF protection enabled
├─ Content Security Policy headers
└─ Rate limiting per client
Layer 3: DATA
├─ Input validation at every boundary
├─ Parameterized queries (JPA/Hibernate)
├─ Output encoding (Vaadin auto-escapes)
└─ Encryption at rest (AES-256, KMS)
Layer 4: IDENTITY
├─ Strong authentication (bcrypt, cost 12)
├─ Role-based access control (RBAC)
├─ Session management (secure cookies)
└─ Principle of least privilege
Layer 5: MONITORING
├─ Security event logging (CloudWatch)
├─ Intrusion detection (GuardDuty)
├─ Vulnerability scanning (CodeQL, OWASP)
└─ Incident response proceduresPre-Implementation:
□ Threat model completed (STRIDE)
□ Data classification assigned
□ Security requirements documented
□ Trust boundaries identified
During Implementation:
□ Input validation at all entry points
□ Output encoding for all user-displayed data
□ Authentication required for protected resources
□ Authorization checks at service layer
□ Parameterized queries for database access
□ Secrets managed via environment variables
□ Error messages don't leak internal details
□ Logging includes security-relevant events
Post-Implementation:
□ CodeQL scan passes with no high/critical findings
□ OWASP dependency check passes
□ Security unit tests written and passing
□ Code review with security focus completed// ✅ Spring Security configuration with secure defaults
@Configuration
@EnableWebSecurity
public class SecurityConfig {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.headers(headers -> headers
.contentSecurityPolicy(csp -> csp
.policyDirectives("default-src 'self'"))
.frameOptions(frame -> frame.deny())
.httpStrictTransportSecurity(hsts -> hsts
.maxAgeInSeconds(31536000)
.includeSubDomains(true)))
.sessionManagement(session -> session
.sessionCreationPolicy(SessionCreationPolicy.IF_REQUIRED)
.maximumSessions(1))
.csrf(csrf -> csrf.csrfTokenRepository(
CookieCsrfTokenRepository.withHttpOnlyFalse()));
return http.build();
}
}| Control | Requirement | Security-by-Design Activity |
|---|---|---|
| ISO 27001 A.8.25 | Secure development lifecycle | STRIDE per feature |
| ISO 27001 A.8.26 | Application security requirements | Security user stories |
| ISO 27001 A.8.28 | Secure coding | Approved coding patterns |
| NIST CSF PR.DS | Data security | Encryption by default |
| CIS Control 16 | Application software security | SAST/DAST in pipeline |
| NIS2 Art. 21 | Cybersecurity risk management | Threat modeling |
© Hack23, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/security-by-design of Hack23/cia.
Open the folder on GitHubat commit 6a9797b
Security By Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Security By Design this skillHack23/cia | 239 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Security Hardeningancoleman/ai-design-components | 526 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Architecting Securityancoleman/ai-design-components | 526 | — | ~6.3k | Automated safety check: Pass | MIT | |
| Senior Securityborghei/Claude-Skills | 874 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Goericrisco/rsc-harness | 156 | — | ~3.9k | Automated safety check: Pass | MIT | |
| Security And Hardeningpenpot/penpot | 61k | 6 repos | ~4.7k | Automated safety check: Notes | MPL-2.0 |
ancoleman/ai-design-components
Reduces attack surface across OS, container, cloud, network, and database layers using CIS Benchmarks and zero-trust principles.
ancoleman/ai-design-components
Design comprehensive security architectures using defense-in-depth, zero trust principles, threat modeling (STRIDE, PASTA), and control frameworks (NIST CSF, CIS Controls, ISO 27001).
borghei/Claude-Skills
STRIDE threat modeling, DREAD risk scoring, secret detection, and secure architecture design.
ericrisco/rsc-harness
A skill your agent uses when writing, reviewing, testing, or shipping Go code and HTTP services: idioms, %w error wrapping, goroutine/context/errgroup concurrency, net/http 1.22 routing, log/slog…
penpot/penpot
Hardens code against vulnerabilities. An agent skill from penpot/penpot.
ruvnet/ruflo
Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.
Hack23/cia
WCAG 2.1 AA compliance, ARIA attributes, keyboard navigation, screen reader optimization for accessible political data platforms
Hack23/cia
Advanced chart types, D3.js/Vaadin Charts patterns, political data visualization, time series analysis
Hack23/cia
AI governance, EU AI Act compliance, OWASP LLM security, responsible AI practices for GitHub Copilot agents
Hack23/cia
External API integration patterns, retry logic, circuit breakers, caching, rate limiting for government data APIs
Hack23/cia
AWS CloudWatch metrics, alarms, dashboards, log insights, and application monitoring for the CIA platform
Hack23/cia
AWS security best practices, VPC security, IAM, KMS, CloudTrail, GuardDuty for CIA platform deployment
Categories
Threat modeling before coding, STRIDE methodology, defense in depth, security controls in SDLC. Security By Design is an agent skill from Hack23/cia.
Security By Design fits situations like: tasks that involve Threat modeling; tasks that involve Secure coding.
Run `npx skills add Hack23/cia --skill security-by-design -a claude-code`. Or copy the skill folder (.github/skills/security-by-design in Hack23/cia) into .claude/skills/security-by-design in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Hack23/cia --skill security-by-design -a codex`. Or copy the skill folder (.github/skills/security-by-design in Hack23/cia) into .agents/skills/security-by-design in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Hack23/cia --skill security-by-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/security-by-design, .gemini/skills/security-by-design, .github/skills/security-by-design and .opencode/skills/security-by-design in your project.
SKILL.md names no scripts, command-line tools or credentials: Security By Design is instructions for the agent only.
SKILL.md names 4 domains. As links in the text: github.com, owasp.org, learn.microsoft.com and csrc.nist.gov. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Security By Design is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Security By Design: Security Hardening (ancoleman/ai-design-components, 526 stars), Architecting Security (ancoleman/ai-design-components, 526 stars), Senior Security (borghei/Claude-Skills, 874 stars) and Go (ericrisco/rsc-harness, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Hack23 (a GitHub organization) maintains it in Hack23/cia, which has 239 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.
Source: Hack23/cia on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.