Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
Strumenti/GitHubGitHub/rocklambros/react2shell_hunter
Strumenti DifensiviScanner di VulnerabilitàExploitSicurezza WebSicurezza CloudThreat IntelligenceRilevamento IntrusioniRisposta agli IncidentiAnalisi dei Log

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
GitHubrocklambros/react2shell_hunter

React2Shell_Hunter

Toolkit di rilevamento a livello di organizzazione AWS per CVE-2025-55182 e CVE-2025-66478 (vulnerabilità RCE di React Server Components / Next.js)

Vedi Repository
149 mesi faNon ancora revisionato
Condividi

React2Shell Hunter

Kit di rilevamento a livello di organizzazione AWS per CVE-2025-55182 e CVE-2025-66478


⚠️ DISCLAIMER IMPORTANTE - LEGGERE PRIMA DELL'USO

Questo kit non è stato testato in un ambiente AWS di produzione.

A causa di vincoli infrastrutturali, questo progetto è stato sviluppato e validato solo tramite revisione del codice, analisi statica e verifica della documentazione. Non è stato distribuito o testato in un ambiente AWS live con servizi GuardDuty, WAF, EventBridge o CloudTrail attivi.

Cosa significa per te:

ComponenteStato
Logica dello scanner Python✅ Codice revisionato, convalidato da Snyk
Sintassi Terraform✅ Convalidata, non applicata

| | Criteri IAM | ⚠️ Potrebbero richiedere modifiche per il tuo ambiente |

| Regole EventBridge | ⚠️ Pattern di rilevamento basati sulla documentazione AWS | | Regole WAF | ⚠️ Pattern regex non testati su traffico reale | | Query Athena | ⚠️ Le ipotesi sugli schema potrebbero necessitare di modifiche |

Raccomandazioni:

  1. Distribuisci prima su un account non di produzione - Testa tutti i componenti in un ambiente sandbox
  2. Esamina attentamente i criteri IAM - Modifica le autorizzazioni per soddisfare i requisiti della tua organizzazione
  3. Valida i piani Terraform - Esegui terraform plan e verifica prima di applicare
  4. Testa i pattern EventBridge - Verifica che le stringhe dei tipi di rilevamento corrispondano all'output di GuardDuty
  5. Monitora i log di CloudWatch - Controlla la presenza di errori dopo la distribuzione

Responsabilità:

Questo software è fornito "AS IS" senza alcuna garanzia. Gli autori non si assumono alcuna responsabilità per danni, incidenti di sicurezza o costi AWS derivanti dall'uso di questo kit. Usalo a tuo rischio e pericolo.

Se riesci a distribuire e testare con successo questo kit, considera di contribuire con i tuoi risultati per migliorarlo per la community.


Un kit di sicurezza completo per rilevare tentativi di sfruttamento di React2Shell in ambienti AWS. Questo kit fornisce rilevamento in tempo reale, capacità di threat hunting e risposta automatizzata per la vulnerabilità critica di RCE dei React Server Components.


Indice

  1. Cosa rileva questo kit
  2. Prerequisiti
  3. Installazione
  4. Avvio rapido
  5. Approfondimento sull'architettura
  6. Riferimento ai componenti
  7. Guida alla distribuzione
  8. Riferimento IOC
  9. Risoluzione dei problemi
  10. FAQ

Cosa rileva questo kit

CVE-2025-55182 (React Server Components)

  • Punteggio CVSS: 10.0 (Massima gravità)
  • Vettore di attacco: Rete, nessuna autenticazione richiesta
  • Causa principale: Prototype pollution tramite deserializzazione non sicura nel protocollo "Flight" di React
  • Sfruttamento: La manipolazione di __proto__:then consente l'esecuzione arbitraria di codice tramite process.mainModule.require('child_process').execSync()

CVE-2025-66478 (Next.js)

  • Impatto a valle: Framework Next.js che utilizzano versioni vulnerabili di React
  • Versioni interessate: Next.js 15.0.4, 15.1.8, 15.2.5, 15.3.5, 15.4.7, 15.5.6, 16.0.6 e 14.3.0-canary.77+

Catena d'attacco rilevata da questo kit```

  1. INITIAL ACCESS → WAF detects Next-Action header + prototype pollution payloads
  2. EXECUTION → GuardDuty ThreatIntelSet detects C2 IP connections
  3. CREDENTIAL THEFT → CloudTrail detects GetCallerIdentity from EC2 roles
  4. LATERAL MOVEMENT → EventBridge rules detect SSM SendCommand/StartSession
  5. EXFILTRATION → DNS exfiltration to ceye.io/dnslog.cn detected
  6. CRYPTOMINING → GuardDuty detects cryptocurrency mining activity
root@kitploit:~
---

## Prerequisiti

### Permessi richiesti```
# Minimum IAM permissions for the detection script
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "cloudtrail:LookupEvents",
        "logs:StartQuery",
        "logs:GetQueryResults",
        "guardduty:ListDetectors",
        "guardduty:ListFindings",
        "guardduty:GetFindings",
        "guardduty:CreateThreatIntelSet",
        "guardduty:UpdateThreatIntelSet",
        "guardduty:ListThreatIntelSets",
        "guardduty:GetThreatIntelSet",
        "s3:PutObject",
        "s3:GetObject",
        "sts:GetCallerIdentity",
        "sts:AssumeRole"
      ],
      "Resource": "*"
    }
  ]
}

# For Security Hub integration, add:
"securityhub:BatchImportFindings"

# For SNS alerting, add:
"sns:Publish"

# For organization-wide scanning, add:
"organizations:ListAccounts"

Requisiti Software

SoftwareVersioneScopo
Python3.9+Runtime dello script di rilevamento
Terraform1.0+Distribuzione dell'infrastruttura
AWS CLI2.xAutenticazione AWS
boto31.34+SDK AWS per Python

Installazione

Passaggio 1: Clona e installa le dipendenze```bash

Navigate to project

cd React2Shell_Hunter

Create virtual environment (RECOMMENDED)

python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate

Install dependencies

pip install -r requirements.txt

root@kitploit:~
### Passo 2: Configurare le credenziali AWS```bash
# Option A: Use AWS CLI profile
aws configure --profile security-scanner

# Option B: Export environment variables
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_DEFAULT_REGION="us-east-1"

# Option C: Use IAM role (recommended for EC2/Lambda)
# Attach appropriate IAM role to your compute resource

Passaggio 3: Verifica installazione```bash

Test AWS connectivity

aws sts get-caller-identity

Test Python dependencies

python -c "import boto3, yaml; print('Dependencies OK')"

Test IOC loading

python -c " import yaml with open('config/iocs.yaml') as f: iocs = yaml.safe_load(f) print(f'Loaded {len(iocs["network_iocs"]["malicious_ips"])} malicious IPs') "

root@kitploit:~
## Avvio rapido

### Scansiona account corrente (Ultime 24 ore)```bash
python src/react2shell_detector.py --hours 24

Output previsto:``` 2025-12-06 10:00:00 - React2ShellDetector - INFO - ============================================================ 2025-12-06 10:00:00 - React2ShellDetector - INFO - React2Shell IOC Detection Script 2025-12-06 10:00:00 - React2ShellDetector - INFO - CVE-2025-55182 & CVE-2025-66478 2025-12-06 10:00:00 - React2ShellDetector - INFO - ============================================================ 2025-12-06 10:00:00 - React2ShellDetector - INFO - Starting single account scan... 2025-12-06 10:00:00 - React2ShellDetector - INFO - Analyzing CloudTrail logs... 2025-12-06 10:00:05 - React2ShellDetector - INFO - Checking GuardDuty findings...

Total findings: 0 CRITICAL: 0 HIGH: 0 MEDIUM: 0

root@kitploit:~
### Scansione completa di produzione```bash
python src/react2shell_detector.py \
    --organization \
    --role-name SecurityAuditRole \
    --security-hub \
    --guardduty-bucket my-threat-intel-bucket-12345 \
    --vpc-log-group /aws/vpc/flowlogs \
    --waf-log-group aws-waf-logs-react2shell \
    --sns-topic arn:aws:sns:us-east-1:123456789012:security-alerts \
    --output json \
    --output-file findings-$(date +%Y%m%d).json \
    --hours 72

Approfondimento sull'architettura

Concetto critico: come funziona il rilevamento di GuardDuty

NON PUOI CREARE REGOLE DI RILEVAMENTO PERSONALIZZATE IN GUARDDUTY.

GuardDuty utilizza modelli ML e intelligence sulle minacce per generare risultati. Per rilevare React2Shell:

  1. ThreatIntelSet: Carica gli IP C2 su GuardDuty → Genera risultati MaliciousIPCaller.Custom
  2. EventBridge: Filtra tipi specifici di risultati → Instrada verso SNS/Lambda/CloudWatch
  3. Risposta: Ricevi avvisi, attiva automazione, indaga``` ┌─────────────────────────────────────────────────────────────────────────────┐ │ DETECTION ARCHITECTURE │ ├─────────────────────────────────────────────────────────────────────────────┤ │ │ │ DATA SOURCES DETECTION ENGINE RESPONSE │ │ ════════════ ════════════════ ════════ │ │ │ │ ┌──────────┐ ┌─────────────────┐ ┌───────────┐ │ │ │CloudTrail│────────────>│ GuardDuty │───────>│EventBridge│ │ │ │ Logs │ │ Detector │ │ Rules │ │ │ └──────────┘ │ │ └─────┬─────┘ │ │ │ ┌─────────────┐ │ │ │ │ ┌──────────┐ │ │ThreatIntel │ │ ▼ │ │ │VPC Flow │────────────>│ │Set (C2 IPs) │ │ ┌───────────┐ │ │ │ Logs │ │ └─────────────┘ │ │ SNS │ │ │ └──────────┘ └─────────────────┘ │ Topic │ │ │ └─────┬─────┘ │ │ ┌──────────┐ ┌─────────────────┐ │ │ │ │DNS Query │────────────>│ Route 53 │ ▼ │ │ │ Logs │ │ Resolver │ ┌───────────┐ │ │ └──────────┘ └─────────────────┘ │ Lambda │ │ │ │ (Enrich) │ │ │ ┌──────────┐ ┌─────────────────┐ └─────┬─────┘ │ │ │ WAF │────────────>│ WAF WebACL │ │ │ │ │ Logs │ │ (HTTP Rules) │ ▼ │ │ └──────────┘ └─────────────────┘ ┌───────────┐ │ │ │ Security │ │ │ │ Hub │ │ │ └───────────┘ │ └─────────────────────────────────────────────────────────────────────────────┘
root@kitploit:~
### Pattern di regole EventBridge

Il Terraform crea 7 regole specifiche di EventBridge:

| Regola | Pattern del tipo di rilevamento | Gravità |
|------|---------------------|----------|
| `react2shell-malicious-ip-caller` | `MaliciousIPCaller.Custom` | CRITICAL |
| `react2shell-credential-exfiltration` | `InstanceCredentialExfiltration.*` | CRITICAL |
| `react2shell-dns-exfiltration` | `DNSDataExfiltration` | HIGH |
| `react2shell-cryptocurrency-mining` | `CryptoCurrency:*` | HIGH |
| `react2shell-unusual-network-ports` | `NetworkPortUnusual` | MEDIUM |
| `react2shell-malicious-domain` | `MaliciousDomainRequest.*` | HIGH |
| `react2shell-high-severity-catchall` | Severity >= 7 | VARIES |

### Livelli di protezione WAF

Il WebACL WAF implementa 9 regole in ordine di priorità:

| Priorità | Regola | Azione | Cosa rileva |
|----------|------|--------|-----------------|
| 1 | Blocca IP dannosi | BLOCK | Connessioni da 9 IP C2 noti |
| 2 | Valori dell'header Next-Action | BLOCK | header `next-action` contenente pattern `$ACTION` o `__proto__` |
| 3 | Valori dell'header RSC-Action-ID | BLOCK | header `rsc-action-id` contenente pattern `$ACTION` o `__proto__` |
| 4 | Inquinamento del prototipo | BLOCK | `__proto__` o `constructor.prototype` nel corpo |
| 5 | Pattern RCE | BLOCK | `process.mainModule.require`, `child_process`, `execSync` |
| 6 | Parametro ACTION | BLOCK | `$ACTION_0:0` o `$ACTION_REF` nel corpo POST |
| 7 | User-Agent sospetti | COUNT | `Go-http-client`, `Assetnote`, `python-requests` |
| 8 | Input dannosi noti AWS | INHERIT | Gruppo di regole gestito AWS |
| 9 | Set di regole comuni AWS | INHERIT | Gruppo di regole gestito AWS |

> **Nota**: Le regole 2 e 3 utilizzano `or_statement` con più controlli `byte_match_statement` per rilevare VALORI di header dannosi (non solo la presenza dell'header). AWS WAF non supporta le regex nel matching degli header, quindi ogni pattern richiede un'istruzione separata. I nomi degli header sono in minuscolo come richiesto da WAF.

---

## Riferimento ai componenti

### Struttura del progetto```
React2Shell_Hunter/
├── config/
│   └── iocs.yaml                    # IOC database (IPs, domains, patterns) - 452 lines
├── src/
│   └── react2shell_detector.py      # Main detection script - 1141 lines
├── terraform/
│   ├── guardduty.tf                 # GuardDuty + ThreatIntelSet + S3 - 405 lines
│   ├── eventbridge_rules.tf         # 7 EventBridge rules - 533 lines
│   └── waf_rules.tf                 # WAF WebACL with 9 rules - 681 lines
├── lambda/
│   └── ioc_scanner/
│       └── handler.py               # Real-time Lambda scanner - 381 lines
├── athena_queries/
│   └── detection_queries.sql        # 18 threat hunting queries - 483 lines
├── tests/
│   ├── __init__.py                  # Test package init
│   ├── conftest.py                  # Pytest fixtures (project_root, ioc_config, etc.)
│   ├── test_ioc_matching.py         # IOC pattern validation tests
│   ├── test_terraform.py            # Terraform configuration validation
│   └── test_waf_patterns.py         # WAF regex pattern tests
├── docs/
│   ├── THREAT_INTELLIGENCE_REPORT.md
│   └── GUARDDUTY_EVENTBRIDGE_SETUP_GUIDE.md
├── requirements.txt                 # Python dependencies (boto3, pyyaml, pytest, python-hcl2)
├── README.md
└── CLAUDE.md

Classi degli Script Python

ClasseScopoMetodi Principali
IOCLoaderCarica IOCs da YAMLget_malicious_ips(), get_suspicious_ports(), get_malicious_domains()
CloudTrailAnalyzerRileva IOCs basati su APIanalyze_recent_events(hours)
VPCFlowLogAnalyzerRileva IOCs di reteanalyze_flow_logs(log_group, hours)
GuardDutyManagerGestisci threat intelligencecreate_threat_intel_set(bucket), get_relevant_findings(hours)
WAFLogAnalyzerRileva IOCs HTTPanalyze_waf_logs(log_group, hours)
OrganizationScannerScansione multi-accountscan_organization(hours, role_name)
SecurityHubReporterImporta risultatiimport_findings(findings)
SNSAlerterInvia avvisisend_alert(findings)

Riferimento Argomenti CLI

ArgomentoTipoPredefinitoDescrizione
--configstringconfig/iocs.yamlPercorso del file di configurazione IOC
--hoursint24Ore di log da analizzare
--organizationflagfalseScansiona l'intera organizzazione AWS
--role-namestringOrganizationAccountAccessRoleRuolo da assumere negli account membri
--sns-topicstringnoneARN del topic SNS per gli avvisi
--security-hubflagfalseImporta risultati in Security Hub
--guardduty-bucketstringnoneBucket S3 per threat intelligence di GuardDuty
--vpc-log-groupstringnoneGruppo di log CloudWatch per VPC Flow Logs
--waf-log-groupstringnoneGruppo di log CloudWatch per WAF logs
--outputenumtextFormato di output: json, text, csv
--output-filestringnonePercorso del file di output
--debugflagfalseAbilita logging di debug

Guida al Deployment

Passo 1: Distribuisci l'Infrastruttura Terraform```bash

cd terraform

Initialize Terraform

terraform init

Preview changes (ALWAYS DO THIS FIRST)

terraform plan
-var="threat_intel_bucket=react2shell-threat-intel-$(aws sts get-caller-identity --query Account --output text)"
-var="enable_guardduty=true"
-var="enable_waf=true"
-var="waf_scope=REGIONAL"

Apply changes

terraform apply
-var="threat_intel_bucket=react2shell-threat-intel-$(aws sts get-caller-identity --query Account --output text)"

root@kitploit:~
**Variabili Terraform:**

| Variabile | Obbligatorio | Predefinito | Descrizione |
|----------|----------|---------|-------------|
| `threat_intel_bucket` | SÌ | - | Nome del bucket S3 per i file di threat intelligence |
| `enable_guardduty` | no | true | Abilita il rilevatore GuardDuty |
| `enable_waf` | no | true | Crea WebACL WAF |
| `waf_scope` | no | REGIONAL | `REGIONAL` o `CLOUDFRONT` |
| `block_mode` | no | BLOCK | `BLOCK` o `COUNT` |
| `enable_lambda_automation` | no | false | Abilita Lambda per risposta automatica |

### Step 2: Associa WAF alle risorse

Il WAF WebACL deve essere associato alle tue risorse:```bash
# Associate with ALB
aws wafv2 associate-web-acl \
    --web-acl-arn $(terraform output -raw web_acl_arn) \
    --resource-arn arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/my-alb/1234567890

# Associate with API Gateway
aws wafv2 associate-web-acl \
    --web-acl-arn $(terraform output -raw web_acl_arn) \
    --resource-arn arn:aws:apigateway:us-east-1::/restapis/abc123/stages/prod

Passaggio 3: Iscriviti agli avvisi SNS```bash

Get SNS topic ARN

SNS_TOPIC=$(terraform output -raw sns_topic_arn)

Subscribe email

aws sns subscribe
--topic-arn $SNS_TOPIC
--protocol email
--notification-endpoint [email protected]

Subscribe Slack webhook (via Lambda)

aws sns subscribe
--topic-arn $SNS_TOPIC
--protocol lambda
--notification-endpoint arn:aws:lambda:us-east-1:123456789012:function:slack-notifier

root@kitploit:~
### Passo 4: Crea tabelle Athena```bash
# Open Athena console or use AWS CLI
# Run the CREATE TABLE statements from athena_queries/detection_queries.sql

# CloudTrail table
aws athena start-query-execution \
    --query-string "CREATE EXTERNAL TABLE cloudtrail_logs ..." \
    --work-group primary \
    --query-execution-context Database=default

Riferimento IOC

Indirizzi IP malevoli

Indirizzo IPPortaConfidenzaContestoFonte
93.123.109.2478000HIGHServer C2 primarioDatadog
45.77.33.1368080HIGHServer C2 primarioDatadog
194.246.84.132045HIGHServer C2 primarioDatadog
141.11.240.10345178HIGHServer C2 primarioDatadog
23.235.188.3652HIGHStager PowerShellGreyNoise
46.36.37.8512000HIGHStaging payloadGreyNoise
144.202.115.23480MEDIUMHosting payloadDatadog
162.215.170.263000MEDIUMPayload secondarioGreyNoise
45.32.158.54-MEDIUMScannerGreyNoise

Domini malevoli

DominioCategoriaConfidenza
ceye.ioEsfiltrazione DNSHIGH
dnslog.cnEsfiltrazione DNSHIGH
*.oastify.comCollaborator BurpMEDIUM
sapo.shk0x.netC2HIGH
xwpoogfunv.zaza.eu.orgC2HIGH
*.c3pool.comCryptominingHIGH

Porte sospette

PortaUtilizzo
652Stager PowerShell
2045C2 personalizzato
8000, 8080C2 HTTP alternativo
12000, 45178C2 personalizzato
3333, 5555, 14433, 14444Cryptomining

Indicatori HTTP

PatternSeveritàDescrizione
next-action: *CRITICALIntestazione di sfruttamento RSC (minuscolo in WAF)
rsc-action-id: *CRITICALIdentificativo azione RSC (minuscolo in WAF)
$ACTION_0:0CRITICALParametro azione RSC
__proto__:thenCRITICALInquinamento del prototipo
process.mainModule.requireCRITICALRCE Node.js
child_processCRITICALEsecuzione di comandi
Go-http-client/1.1MEDIUMUser agent scanner

Risoluzione dei problemi

Problemi comuni

"Nessun rilevatore GuardDuty trovato"```bash

Check if GuardDuty is enabled

aws guardduty list-detectors

If empty, enable GuardDuty

aws guardduty create-detector --enable

Or use Terraform

terraform apply -var="enable_guardduty=true"

root@kitploit:~
#### "Impossibile assumere il ruolo nell'account membro"```bash
# Verify role exists in target account
aws iam get-role --role-name SecurityAuditRole

# Verify trust policy allows your account
aws iam get-role --role-name SecurityAuditRole --query 'Role.AssumeRolePolicyDocument'

# Test role assumption
aws sts assume-role \
    --role-arn arn:aws:iam::TARGET_ACCOUNT:role/SecurityAuditRole \
    --role-session-name test

"ThreatIntelSet bloccato in ACTIVATING"```bash

Check ThreatIntelSet status

DETECTOR_ID=$(aws guardduty list-detectors --query 'DetectorIds[0]' --output text) aws guardduty list-threat-intel-sets --detector-id $DETECTOR_ID

Verify S3 bucket permissions

aws s3api get-bucket-policy --bucket your-threat-intel-bucket

Verify IP list format (one IP per line, no CIDR)

aws s3 cp s3://your-bucket/threat-intel/react2shell-ips.txt -

root@kitploit:~
#### "Regola WAF non bloccante"```bash
# Check if WebACL is associated
aws wafv2 list-resources-for-web-acl \
    --web-acl-arn $(terraform output -raw web_acl_arn)

# Check sampled requests
aws wafv2 get-sampled-requests \
    --web-acl-arn $(terraform output -raw web_acl_arn) \
    --rule-metric-name React2Shell-Malicious-IP-Blocked \
    --scope REGIONAL \
    --time-window StartTime=2025-12-06T00:00:00Z,EndTime=2025-12-06T23:59:59Z \
    --max-items 10

"Nessun risultato generato"```bash

Generate sample findings to test pipeline

DETECTOR_ID=$(aws guardduty list-detectors --query 'DetectorIds[0]' --output text) aws guardduty create-sample-findings
--detector-id $DETECTOR_ID
--finding-types "UnauthorizedAccess:IAMUser/MaliciousIPCaller.Custom"

Check EventBridge rule invocations

aws cloudwatch get-metric-statistics
--namespace AWS/Events
--metric-name Invocations
--dimensions Name=RuleName,Value=react2shell-malicious-ip-caller
--start-time $(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%SZ)
--end-time $(date -u +%Y-%m-%dT%H:%M:%SZ)
--period 300
--statistics Sum

root@kitploit:~
---

## FAQ

### D: Questo sostituisce il patching?

**NO.** Questo è un toolkit di rilevamento, non una soluzione di prevenzione. Devi ASSOLUTAMENTE applicare le patch:
- React: 19.0.1, 19.1.2 o 19.2.1
- Next.js: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 o 16.0.7

### D: Questo rileverà tutti gli attacchi React2Shell?

**Nessun rilevamento è al 100%.** Questo toolkit rileva:
- Connessioni a indirizzi IP C2 noti (se l'attaccante usa nuovi IP, non verrà rilevato)
- Pattern di payload noti (se l'attaccante offusca, potrebbe eludere il WAF)
- Comportamento post-exploitation (furto di credenziali, movimento laterale)

### D: Con quale frequenza dovrei eseguire lo scanner?

Programma consigliato:
- **Continuo**: GuardDuty + EventBridge (in tempo reale)
- **Ogni ora**: Script Python con `--hours 1`
- **Ogni giorno**: Query complete di threat hunting su Athena

### D: Come posso aggiungere nuovi IOC?

Modifica `config/iocs.yaml` e aggiungi alle sezioni appropriate:```yaml
network_iocs:
  malicious_ips:
    - ip: "NEW.IP.ADDRESS.HERE"
      port: 8080
      context: "Description"
      confidence: high
      source: "Your source"

Quindi aggiorna ThreatIntelSet:```bash python src/react2shell_detector.py --guardduty-bucket your-bucket

root@kitploit:~
---

## Esecuzione dei Test```bash
# Install test dependencies
pip install -r requirements.txt

# Run all tests
pytest tests/ -v

# Run specific test categories
pytest tests/test_terraform.py -v      # Terraform validation
pytest tests/test_ioc_matching.py -v   # IOC pattern tests
pytest tests/test_waf_patterns.py -v   # WAF regex tests

# Run with coverage
pytest tests/ --cov=src --cov-report=html

Riferimenti

  • CVE-2025-55182 - NVD
  • Sito ufficiale di React2Shell
  • Datadog Security Labs
  • Blog sulla sicurezza di AWS
  • Repository IOC di Datadog

Disclaimer: Questo toolkit è destinato esclusivamente a scopi di sicurezza difensiva. Assicurati di avere la corretta autorizzazione prima di eseguire scansioni sui sistemi.

Scarica lo strumento