Langsung ke konten
Skillpedia
Keamanan35k Β· #8006

implementing-bgp-security-with-rpki

Fungsinya

Fitur ini membantu melindungi jaringan Anda dari serangan yang mencoba mencuri atau mengalihkan lalu lintas internet Anda. Caranya dengan memverifikasi bahwa informasi routing yang Anda umumkan itu sah, menggunakan sistem validasi bernama RPKI.

Kapan dipakai

  • βœ“Saat Anda ingin mencegah pihak lain membajak lalu lintas jaringan Anda.
  • βœ“Saat Anda perlu memastikan informasi routing Anda dapat dipercaya.
  • βœ“Saat mengonfigurasi keamanan jaringan agar memenuhi aturan kepatuhan tertentu.

Link skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-bgp-security-with-rpki/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-bgp-security-with-rpki/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œAtur keamanan RPKI untuk jaringan saya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Pertama, Anda membuat otorisasi (disebut ROA) yang menyatakan bagian jaringan mana yang boleh mengumumkan alamat IP tertentu. Lalu, Anda memasang software yang memeriksa otorisasi tersebut dan mengonfigurasi router agar hanya menerima lalu lintas dengan otorisasi yang valid.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           Regional Internet Registries        β”‚
β”‚    (ARIN, RIPE, APNIC, AFRINIC, LACNIC)      β”‚
β”‚                                               β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Trust Anchor (Root CA Certificate)      β”‚  β”‚
β”‚  β”‚  β”œβ”€β”€ CA Certificate (ISP/Organization)   β”‚  β”‚
β”‚  β”‚  β”‚   β”œβ”€β”€ ROA: AS64512 β†’ 198.51.100.0/24 β”‚  β”‚
β”‚  β”‚  β”‚   └── ROA: AS64512 β†’ 2001:db8::/32   β”‚  β”‚
β”‚  β”‚  └── CA Certificate (Another Org)        β”‚  β”‚
β”‚  β”‚      └── ROA: AS64513 β†’ 203.0.113.0/24  β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚ rsync/RRDP
                     β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚  RPKI Validator/Cache β”‚  (Routinator, FORT, OctoRPKI)
         β”‚  Validates ROAs       β”‚
         β”‚  Serves VRPs to RTR   β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚ RTR Protocol (TCP 8323)
                     β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚  BGP Router           β”‚
         β”‚  Performs ROV          β”‚
         β”‚  Applies policy:      β”‚
         β”‚   Valid β†’ Accept      β”‚
         β”‚   Invalid β†’ Reject    β”‚
         β”‚   NotFound β†’ Accept   β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

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):

  1. Log into ARIN Online portal
  2. Navigate to Routing Security > Route Origin Authorizations
  3. Create ROA:
    • Prefix: 198.51.100.0/24
    • Origin AS: AS64512
    • Max Length: /24 (set equal to prefix length to prevent sub-prefix hijacking)
  4. Sign and submit

RIPE NCC (Europe):

  1. Log into RIPE NCC LIR Portal
  2. Navigate to Certification (RPKI) > ROAs
  3. Create ROA with prefix, origin AS, and max prefix length

Step 2: Deploy RPKI Validator (Routinator)

# Install Routinator on Ubuntu
sudo apt install -y routinator

# Or install via Cargo (Rust)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install routinator

# Initialize Routinator (accept TALs)
routinator init --accept-arin-rpa

# Start Routinator in RTR server mode
routinator server \
  --rtr 0.0.0.0:8323 \
  --http 0.0.0.0:8080 \
  --refresh 600 \
  --retry 60 \
  --expire 7200

# Run as systemd service
cat > /etc/systemd/system/routinator.service << 'SYSTEMD'
[Unit]
Description=Routinator RPKI Validator
After=network.target

[Service]

…
Pertanyaan umum

Apa itu RPKI?

RPKI adalah singkatan dari Resource Public Key Infrastructure. Ini adalah sistem yang menggunakan kriptografi untuk memastikan informasi routing jaringan itu asli dan tidak diubah.

Apa itu ROA?

ROA adalah singkatan dari Route Origin Authorization. Ini adalah pernyataan bertanda tangan digital yang menentukan Autonomous System (AS) mana yang diizinkan mengumumkan blok alamat IP tertentu.

Apa itu ROV?

ROV adalah singkatan dari Route Origin Validation. Ini adalah proses ketika router memeriksa pengumuman rute yang diterima terhadap ROA yang tersedia untuk memastikan keabsahannya.

Detail

Deskripsi asli dari pembuat

Implement RPKI-based BGP route origin validation by creating Route Origin Authorizations (ROAs) at RIRs (ARIN, RIPE, APNIC, AFRINIC, LACNIC), deploying validator software (Routinator, FORT, OctoRPKI), and configuring RPKI-to-Router protocol and ROV accept/reject policies on Cisco IOS-XE and Juniper Junos routers. Use when hardening BGP against route hijacking or leaks, or when configuring ROV filt

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularitas

Bintang GitHub
35k
Peringkat
#8006
Lisensi
Apache-2.0
Diperbarui
31/8/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa