mukul975/anthropic-cybersecurity-skills/implementing-bgp-security-with-rpki
Claude Code and agent skill by mukul975/anthropic-cybersecurity-skills
- community
Checking that the SKILL.md file is still in the repository.
Implement RPKI-based BGP route origin validation by creating Route Origin
Install
npx vskill@latest install mukul975/anthropic-cybersecurity-skills/implementing-bgp-security-with-rpkiSKILL.md
The same SKILL.md was published earlier as mukul975/anthropic-cybersecurity-skills/implementing-bgp-security-with-rpki.
Implementing BGP Security with RPKI
Overview
Resource Public Key Infrastructure (RPKI) provides cryptographic validation of BGP route origins to prevent route hijacking and accidental route leaks. RPKI enables network operators to create Route Origin Authorizations (ROAs) that declare which Autonomous Systems (ASes) are authorized to originate specific IP prefixes. BGP routers validate received route announcements against RPKI data through Route Origin Validation (ROV), rejecting routes with invalid origins. This skill covers creating ROAs through Regional Internet Registries (RIRs), deploying RPKI validator software, configuring ROV on Cisco IOS-XE and Juniper Junos routers, and implementing BGP filtering policies based on RPKI validation state.
When to Use
- When deploying or configuring implementing bgp security with rpki capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- IP address space allocated from an RIR (ARIN, RIPE, APNIC, AFRINIC, LACNIC)
- RIR member portal access for ROA creation
- BGP routers (Cisco IOS-XE 16.x+, Juniper Junos 12.2+, or similar)
- Linux server for RPKI validator/cache (Routinator, FORT, or OctoRPKI)
- Understanding of BGP routing and AS path concepts
Core Concepts
RPKI Architecture
RPKI Validation States
| State | Meaning | Recommended Action | |
|---|---|---|---|
| Valid | ROA exists, origin AS and prefix match | Accept route (prefer) | |
| Invalid | ROA exists, but origin AS or prefix length mismatch | Reject route | |
| NotFound | No ROA covers this prefix | Accept (but lower preference) |
Route Origin Authorization (ROA)
A ROA is a signed object that states:
- Prefix: The IP address range (e.g., 198.51.100.0/24)
- Origin AS: The AS authorized to originate this prefix (e.g., AS64512)
- Max Length: Maximum prefix length that can be announced (e.g., /24)
Workflow
Step 1: Create ROAs at Your RIR
ARIN (North America):
- Log into ARIN Online portal
- Navigate to Routing Security > Route Origin Authorizations
- Create ROA:
- Prefix: 198.51.100.0/24
- Origin AS: AS64512
- Max Length: /24 (set equal to prefix length to prevent sub-prefix hijacking)
- Sign and submit
RIPE NCC (Europe):
- Log into RIPE NCC LIR Portal
- Navigate to Certification (RPKI) > ROAs
- Create ROA with prefix, origin AS, and max prefix length
Step 2: Deploy RPKI Validator (Routinator)
Step 3: Configure ROV on Cisco IOS-XE
Step 4: Configure ROV on Juniper Junos
Step 5: Monitor RPKI Deployment
Best Practices
- Create ROAs for All Prefixes - Sign ROAs for every prefix your organization announces
- Max Length = Prefix Length - Set max-length equal to announced prefix length to prevent sub-prefix hijacking
- Dual Validator - Run two independent RPKI validators for redundancy
- Soft Policy First - Start with logging RPKI-invalid routes before dropping them
- Monitor ROA Expiry - Set alerts for ROA certificates approaching expiration
- Coordinate with Upstreams - Notify transit providers about your RPKI deployment
- Test with Looking Glass - Verify your ROAs are visible using public RPKI validators
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/implementing-bgp-security-with-rpki/SKILL.md
Popularity
- Repository stars
- 33,533
- Repository forks
- 4,067
- 7-day trend score
- 52
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mukul975/anthropic-cybersecurity-skills/implementing-bgp-security-with-rpki)