Passa al contenuto principale

Fraud detection - integration test guide

Scenarios

PatternScenario fileInject CSVExpected detection
Wangiri burstfraud-wangiri-burst.xmlnumbers-fraud-wangiri.csvACD below 3s, high ASR, Pattern Analyzer flag within 5 min
IRSF premiumfraud-irsf-premium.xmlnumbers-fraud-irsf.csvDestination match on Cook Islands, Somalia, or BVI premium ranges
ConcentrationManual CDR fixture or SQL seedManualSingle originator above 60% toward one destination country within the analysis window

Run

ssh sipp-01-staging
sudo /opt/akira/sipp/run_fraud_test.sh wangiri 100.100.0.10:5060
sudo /opt/akira/sipp/run_fraud_test.sh irsf 100.100.0.10:5060

Verify Detection

  1. Open https://akira-staging.asheep.it/pattern-analyzer.
  2. Check for a new "Wangiri pattern detected" alert within 5 minutes after the Wangiri run.
  3. Check for a new IRSF or premium destination alert after the IRSF run.
  4. Drill into the detection and verify that the triggering CDR list contains fraud-test-wangiri- or fraud-test-irsf- call IDs.
  5. Use the "Block CLI" action on a test CLI and verify the resulting blocklist entry.

Cleanup

Run cleanup only against the staging test database used for the integration run:

DELETE FROM cdr WHERE call_id LIKE 'fraud-test-%';
DELETE FROM cdr_patterns WHERE detection_source = 'integration-test';

Concentration risk is intentionally not generated by the SIPp launcher: it is an aggregate-hour risk signal and should be tested with a deterministic CDR fixture or SQL seed.