// ── Threat-detection demo scenarios ────────────────────────────────────────── // Each scenario drives a 5-phase, ~34s recordable demo video: // P1 Setup → P2 Detection → P3 Risk-score impact → P4 Response → P5 Resolution/CTA export type Severity = 'red' | 'yellow' | 'green' export type ProductTag = 'sdk' | 'halo' | 'dns' export interface ThreatAction { label: string primary?: boolean icon?: string } export interface VoCue { at: number // ms from start text: string } export interface ThreatScenario { id: string file: string // export file name product: string // "Mobile SDK" | "Halo Platform" | "DNS Shield" tag: ProductTag tagLabel: string // "SDK · CALL" title: string blurb: string icon: string // emoji context: string // home-screen context line initialScore: number finalScore: number severity: Severity // colour at the final score threatTitle: string threatBody: string detailHeadline: string detailLines: string[] actions: ThreatAction[] // first with primary:true is the highlighted/tapped one resolutionTitle: string resolutionBody: string resolutionTone: Severity // calm green for prevention, else elevated statusChange?: string // e.g. family member status after the event voCues: VoCue[] } // Phase timings (ms) — shared across scenarios export const PHASES = { setupEnd: 4000, detectEnd: 9000, riskEnd: 15000, responseEnd: 24000, resolutionEnd: 30000, endCard: 30000, total: 34500, } // When the risk number animates (start of phase 3) and for how long export const RISK_ANIM_AT = 9200 export const RISK_ANIM_MS = 2000 export const THREAT_SCENARIOS: ThreatScenario[] = [ { id: 'callscam', file: 'blackdice-demo-01-call-scam.mp4', product: 'Mobile SDK', tag: 'sdk', tagLabel: 'SDK · CALL', title: 'Scam Call Detection', blurb: 'A suspicious call with a spoofed caller ID. BlackDice Angel risk rises to 85, and blocking is recommended.', icon: '📞', context: 'Your family is protected', initialScore: 25, finalScore: 85, severity: 'red', threatTitle: 'Scam Call Detected', threatBody: 'Suspicious call from +44 7890 123456', detailHeadline: 'Caller ID appears spoofed', detailLines: [ 'Number matches a known scam pattern', 'Caller ID does not match the carrier record', 'Reported by 240+ BlackDice users', ], actions: [ { label: 'Block caller', primary: true, icon: '🚫' }, { label: 'Report', icon: '⚑' }, ], resolutionTitle: 'Caller blocked', resolutionBody: 'Scam number blocked · incident reported', resolutionTone: 'red', statusChange: 'Risk stays elevated until reviewed', voCues: [ { at: 300, text: 'We monitor every incoming call in real time.' }, { at: 4300, text: 'We detect a suspicious call with a spoofed caller ID.' }, { at: 9400, text: 'Our BlackDice Angel risk score rises from 25 to 85, so we recommend taking a closer look.' }, { at: 15500, text: 'With one tap, the user can block the caller and report the incident.' }, { at: 30300, text: 'We protect families from phone scams. Book a demo today.' }, ], }, { id: 'smsscam', file: 'blackdice-demo-02-sms-scam.mp4', product: 'Mobile SDK', tag: 'sdk', tagLabel: 'SDK · SMS', title: 'Scam SMS Detection', blurb: 'A phishing SMS with a malicious link. BlackDice Angel risk rises to 78, and it’s best not to click.', icon: '✉️', context: 'Your family is protected', initialScore: 20, finalScore: 78, severity: 'red', threatTitle: 'SMS Scam Detected', threatBody: '“Your bank account has been compromised…”', detailHeadline: 'Known phishing attempt', detailLines: [ 'Message contains a malicious shortened link', 'Impersonates your bank’s security team', 'Best not to tap the link or reply', ], actions: [ { label: 'Delete message', primary: true, icon: '🗑' }, { label: 'Report', icon: '⚑' }, ], resolutionTitle: 'Message removed', resolutionBody: 'Phishing SMS deleted · sender reported', resolutionTone: 'red', voCues: [ { at: 300, text: 'We scan messages for phishing in real time.' }, { at: 4300, text: 'A scam SMS tries to trick the user with a fake bank alert.' }, { at: 9400, text: 'We raise the BlackDice Angel risk score to 78, flagging the suspicious link.' }, { at: 15500, text: 'The user is gently warned not to click, and can delete and report the message.' }, { at: 30300, text: 'We protect families from phishing. Book a demo today.' }, ], }, { id: 'simswap', file: 'blackdice-demo-03-sim-swap.mp4', product: 'Mobile SDK', tag: 'sdk', tagLabel: 'SDK · SIM', title: 'SIM Swap Detection', blurb: 'Mia’s SIM was swapped to a new device. BlackDice Angel risk rises to 92, and we recommend acting quickly.', icon: '📱', context: 'Mia · Online', initialScore: 15, finalScore: 92, severity: 'red', threatTitle: 'SIM Swap Detected', threatBody: 'Mia’s SIM card was changed to a new device', detailHeadline: 'Worth reviewing as soon as you can', detailLines: [ 'SIM moved to an unrecognised device', 'Could allow someone to access accounts using one-time codes', 'Confirm it’s really Mia before continuing', ], actions: [ { label: 'Verify identity', primary: true, icon: '🛡' }, { label: 'Contact Mia', icon: '📞' }, ], resolutionTitle: 'Account locked', resolutionBody: 'Mia’s number secured · awaiting verification', resolutionTone: 'red', statusChange: 'Mia · ⚠️ SIM changed', voCues: [ { at: 300, text: 'We watch for SIM-swap attacks across the family.' }, { at: 4300, text: 'We detect a SIM swap on Mia’s account.' }, { at: 9400, text: 'Our BlackDice Angel risk score rises to 92, so we recommend acting quickly.' }, { at: 15500, text: 'The parent is gently prompted to confirm Mia’s identity and block unauthorised access.' }, { at: 30300, text: 'We help stop account takeover. Book a demo today.' }, ], }, { id: 'dns', file: 'blackdice-demo-06-dns-block.mp4', product: 'DNS Shield', tag: 'dns', tagLabel: 'DNS · BLOCK', title: 'Malicious DNS Block', blurb: 'Request to a malicious domain blocked. BlackDice Angel risk stays low at 45 – prevention in action.', icon: '🌐', context: 'DNS Shield active', initialScore: 35, finalScore: 45, severity: 'green', threatTitle: 'Malicious DNS Blocked', threatBody: 'Blocked request to phishing-domain.com', detailHeadline: 'Threat blocked before it could load', detailLines: [ 'phishing-domain.com – known malicious domain', 'Request intercepted at the DNS layer', '12 malicious domains blocked this week', ], actions: [ { label: 'View dashboard', primary: true, icon: '📊' }, { label: 'Dismiss', icon: '×' }, ], resolutionTitle: 'Risk contained', resolutionBody: 'DNS Shield blocked the threat automatically', resolutionTone: 'green', voCues: [ { at: 300, text: 'Our DNS Shield filters every domain request.' }, { at: 4300, text: 'A device tries to reach a known malicious domain.' }, { at: 9400, text: 'We block it instantly – our risk score stays low at 45.' }, { at: 15500, text: 'The threat is stopped before any damage, and logged in the dashboard.' }, { at: 30300, text: 'We deliver prevention that just works. Book a demo today.' }, ], }, { id: 'appperms', file: 'blackdice-demo-07-app-permissions.mp4', product: 'Mobile SDK', tag: 'sdk', tagLabel: 'SDK · PERM', title: 'Risky App Permissions', blurb: 'An app requests more permissions than it needs. BlackDice Angel risk rises to 66, worth a review.', icon: '📲', context: 'Approvals · 1 pending', initialScore: 32, finalScore: 66, severity: 'yellow', threatTitle: 'Risky App Permissions', threatBody: '“PhotoEditor” requests contacts and location', detailHeadline: 'Asking for more than it needs', detailLines: [ 'Contacts and location access requested', 'Not required for this app’s function', 'Age rating: 12+', ], actions: [ { label: 'Decline', primary: true, icon: '×' }, { label: 'Approve & install', icon: '✓' }, ], resolutionTitle: 'Install declined', resolutionBody: 'PhotoEditor blocked · request closed', resolutionTone: 'yellow', statusChange: 'PhotoEditor · request reviewed', voCues: [ { at: 300, text: 'We review every app your child wants to install.' }, { at: 4300, text: 'PhotoEditor asks for more than it needs – contacts and location.' }, { at: 9400, text: 'We flag the risk and raise our BlackDice Angel score to 66.' }, { at: 15500, text: 'The parent can review the permissions and decline the install.' }, { at: 30300, text: 'We make apps safer for younger users. Book a demo today.' }, ], }, ] export function getScenario(id: string | undefined): ThreatScenario | undefined { return THREAT_SCENARIOS.find((s) => s.id === id) } export function scoreColor(score: number): Severity { if (score >= 70) return 'red' if (score >= 50) return 'yellow' return 'green' }