← Back to Research Index View Raw Source

diabolical-engine.md

# DIABOLICAL Engine ## Dual-Intent Detection: Review Fraud on X + Trafficking Risk Signals via Semantic Nodes + DNS Graph ## MODEL / SCHEMATIC - Not an accusation, not a filing, not a live surveillance system Manifest: albertlane.net | Provenance: https://albertlane.net Version: 1.0 MODEL | Status: SCHEMATIC - For defensive research, platform integrity, and referral to authorities only Tag system: FILED / CITED = Sourced from public research or official guidance MODEL / PROJECTION = Constructed model, not a filing CLAIM = Hypothesis, not verified fact NOT SOURCED = No credible filing found AMBIGUITY PRESERVED = Two readings remain COMPUTED HERE = Arithmetic in this file SAFETY RULE, NON-NEGOTIABLE: This engine NEVER names a person, business, or governing body as a trafficker or fraudster from a graph score alone. Graph score = RISK SIGNAL for human review. Only law enforcement + vetted anti-trafficking orgs investigate persons. Public accusation from a model score is defamation and it endangers victims. If you see an emergency, call 911. To report suspected trafficking in US: National Human Trafficking Hotline 1-888-373-7888, Text HELP or INFO to BeFree (233733), or DHS Tip Line 1-866-347-2423. --- ## 0. Why One Engine For Two Crimes? MODEL: Review fraud and sex trafficking look different on the surface, but they reuse the same infrastructure pattern: - Coordinated accounts posting template text in bursts - Shared phone, domain, IP, certificate, payment, or address reused across many identities - Movement: same identity appears in many cities in short time, with same template - Control: one manager speaks for many accounts, many reviews, many ads FILED / CITED: Review fraud research describes building a behavioral graph where reviewers are connected if they share characteristic features, then expanding from a small subgraph of known fake reviewers to find other connected suspicious reviewers. FILED / CITED: Trafficking research describes using social network analysis on online ads to identify circuits, grouping posts by text, phone numbers, and pictures, and tracking movement patterns. FILED / CITED: CooRTweet-style detection on X works by identifying accounts who share identical objects within the same temporal window, as a preliminary step to network analysis. MODEL: The diabolical part is not cruelty. It is that the engine makes the infrastructure reuse visible, which is exactly what both fraud and trafficking try to hide. They hide by using many names. The graph collapses many names into one infrastructure cluster. --- ## 1. Architecture: 4 Layers, 1 Graph, 2 Firewalled Heads Layer 0: INGEST - Public / Authorized Only - X: Official X API v2, with consent, for public posts, reposts, quote posts, and link shares. No DMs. No private accounts. No scraping to bypass rate limits. - Reviews: Public review platforms via official API or licensed feed. No scraping of private data. - DNS / Infra: Public DNS records, Certificate Transparency logs via crt.sh, WHOIS, passive DNS from licensed providers, IP ASN data. NOT Cloudflare / Google / AWS internal logs. You do not have access to those, and you must not try to get them. - Governance / Procurement: Public procurement (USASpending, state portals), corporate registries, property records, campaign finance where public. NOT private government systems. - Trafficking Ads: Do NOT scrape live escort ads yourself. Use vetted researcher datasets, de-identified, or work through NCMEC / Polaris / university partners. Never store images of possible minors. Never contact a possible victim directly. Layer 1: NORMALIZE + ENTITY RESOLUTION - Hash phones, emails, addresses with salted hash, never store plaintext where not needed. - Normalize text: lower, strip emojis, extract template fingerprints. - Normalize domains: lower, strip www, extract registrable domain. - Normalize IPs: map to ASN, provider fingerprint. - Normalize time: UTC, bucket into 10-min, 1-hour, 24-hour windows. Layer 2: SEMANTIC NODES + GRAPH Node types: - ACCOUNT: X account, review account, business account - POST: X post, review, ad text (de-identified) - TEMPLATE: Semantic fingerprint of text, e.g., "just visiting, new in town, call now" - DOMAIN: e.g., example.com - IP: IPv4 / IPv6 - ASN: e.g., AS13335 Cloudflare, AS16509 Amazon, AS15169 Google - NAMESERVER: e.g., ns1.cloudflare.com, ns-xxx.awsdns-xx.com, ns-cloud-xx.googledomains.com - CERT: TLS cert SHA256, from CT logs - PHONE_HASH: salted hash of phone - EMAIL_HASH: salted hash - BUSINESS: Legal entity, from public registry - GOV_CONTRACT: Procurement record, public - LOCATION: City, not precise address, not victim location - PAYMENT_FINGERPRINT: Hashed payment descriptor, only if legally obtained via platform Edge types: - POSTED_BY: POST -> ACCOUNT - SHARES_TEMPLATE: POST -> TEMPLATE, weight = similarity - LINKS_TO: POST -> DOMAIN - RESOLVES_TO: DOMAIN -> IP - HOSTED_ON: IP -> ASN - USES_NS: DOMAIN -> NAMESERVER - USES_CERT: DOMAIN -> CERT - SHARES_PHONE: ACCOUNT / BUSINESS -> PHONE_HASH - SHARES_CERT: DOMAIN -> CERT -> DOMAIN - CO_POSTS_WITHIN_T: ACCOUNT -> ACCOUNT if same object in same window - CO_REVIEWS_SAME_BUSINESS: ACCOUNT -> ACCOUNT if co-review same business in burst - CONTRACTS_WITH: BUSINESS -> GOV_CONTRACT - REGISTERED_AT: BUSINESS -> LOCATION Layer 3: SCORING + HUMAN REVIEW Two heads share the graph but are firewalled: Head A: REVIEW FRAUD - Platform integrity, can action on platform Head B: TRAFFICKING RISK - Referral only, never platform accusation No edge crosses the firewall without human review + corroboration. --- ## 2. Semantic Nodes: How Text Becomes a Node MODEL: Do not use keywords alone. Use template fingerprints. 1. Template Fingerprint: - Take post / review / ad text, remove names, phones, locations. - Extract 3-5 word shingles, hash them. - If two posts share >0.75 Jaccard on shingles + same time window, they share a TEMPLATE node. - Example templates for review fraud, MODEL: "Best service ever!!! Highly recommend!!! Call now" repeated with same punctuation, same emojis, same typo. - Example templates for trafficking risk, MODEL / CITED via Polaris indicators: "just visiting", "new in town", "no questions", "young", "foreign", "available 24/7", third-person control language like "she is available", "we have girls". FILED / CITED: Polaris lists indicators such as: not free to leave or come and go as he/she wishes, under 18 and providing commercial sex acts, in commercial sex industry and has a pimp / manager, unpaid or paid very little, works excessively long hours, claims to be just visiting but unable to clarify address, does not have ID. MODEL: A single keyword is NOT a signal. The signal is: TEMPLATE + SHARED INFRA + MOVEMENT + CONTROL. 2. Control Language Node: - First-person vs third-person: "I am available" vs "She is available, call her manager" - MODEL: Third-person + manager phone + movement = higher Control Score. 3. Movement Node: - ACCOUNT appears in City A on Day 1, City B on Day 2, City C on Day 3, with same TEMPLATE + same PHONE_HASH. - FILED / CITED: Trafficking circuit research tracks movement via ads across cities, using phone and text as linkage. - MODEL: Movement Score = number of distinct cities in 7 days / 7, weighted by distance. Normal business travel is low template reuse. Circuit travel is high template reuse + high movement. --- ## 3. Network Graphing Across Cloudflare, Google, AWS DNS MODEL: DNS is the choke point. Every domain must resolve. Every fraud ring and trafficking ring must reuse DNS infrastructure because it is expensive to rebuild. Public Fingerprints, FILED / CITED: - Cloudflare: nameservers like ns1.cloudflare.com, IP ranges AS13335, CT logs operated by Google, Cloudflare, DigiCert, others. - AWS Route 53: nameservers like ns-xxx.awsdns-xx.com / .net / .org / .co.uk, AS16509, AS14618. - Google Cloud DNS: nameservers like ns-cloud-xx.googledomains.com, AS15169. - CT logs: Every publicly trusted TLS certificate is logged in public Certificate Transparency logs before browsers accept it. crt.sh searches those logs. - Passive DNS: Historical resolutions observed by third-party sensors, showing rotation patterns and hidden infrastructure. MODEL: Build a heterogeneous graph: Domain - IP - Cert - Registrar - Nameserver - ASN. - If 20 domains share same CERT, same IP, same NS, and same TEMPLATE, they are one cluster, even if they have 20 different business names. - If a domain changes IP every 24h but keeps same CERT and same NS, that is fast-flux-like behavior, higher risk. - If a domain is newly registered, gets a cert within 1 hour, gets 500 X posts in 1 hour, gets 200 reviews in 1 hour, that is a burst cluster. COMPUTED HERE - Infrastructure Reuse Score, Schematic: Let D = number of domains in cluster Let C = number of distinct certs in cluster Let I = number of distinct IPs in cluster Let N = number of distinct nameservers in cluster Reuse = D / (C + I + N) If D=20, C=1, I=2, N=2, Reuse = 20 / 5 = 4.0 If D=20, C=20, I=20, N=8, Reuse = 20 / 48 = 0.42 MODEL: High Reuse >2.0 + high burst = suspicious infrastructure reuse. Low Reuse = normal diversity. COMPUTED HERE - DNS Provider Concentration: Let P_cf = share of cluster domains on Cloudflare NS Let P_aws = share on Route 53 NS Let P_google = share on Google Cloud DNS If cluster is 90% on one provider, that is not proof of guilt. It is a pivot. You pivot from provider to other domains on same IP / cert, not to accuse the provider. AMBIGUITY PRESERVED: Cloudflare, Google, AWS host mostly legitimate sites. High concentration on one provider is normal for legitimate businesses too. The graph must not treat provider as guilt. --- ## 4. Head A: X / Twitter Review Fraud Dismantling Goal: Dismantle review fraud ON X, not just detect it elsewhere. X is the amplifier. FILED / CITED: Coordinated fake-review abuse is a pattern problem, not single-incident. Look for repeated device fingerprints, bursty submission patterns, reused account attributes, clusters acting together across same destinations. MODEL Signals for Head A: 1. Coordination Score: - Accounts that share same link, same image hash, same text within 10-min window. - COMBINED with: accounts created within same 24h window, same bio template, same follower pattern. - COMPUTED HERE: If 50 accounts share same review link within 10 min, and 40 were created in last 7 days, Coordination = 50 * 0.8 = 40. Normal viral = high share but low creation burst. Fraud = high share + high creation burst. 2. Co-Review Graph: - Build reviewer - review - business graph, 3 node types. - Detect candidate groups via attributed product-product graph, co-reviewing, ratings, timing. - FILED / CITED: DeFrauder-style method uses product review graphs and behavioral signals modeling multi-faceted reviewer collaboration. 3. Template + Rating Anomaly: - Cluster reviews with same template + 5-star + same day + same business, but reviewers never reviewed any other business. - Normal: reviewers have diverse history, diverse ratings, diverse timing. - Fraud: reviewers have 1 review, 5-star, template, burst. 4. X Amplifier Edge: - X account posts review link -> X account gets 500 reposts from same cluster in 10 min -> review platform sees traffic spike -> review ranks higher. - MODEL: The X cluster is the engine that makes review fraud work. Dismantle by: downrank coordinated amplification, require proof of purchase / visit, freeze cluster for human review, do not just delete one review. Action Ladder for Head A, Platform Only: - Level 0: Log, no action, score <0.3 - Level 1: Downrank amplification, score 0.3-0.5, no account penalty - Level 2: Require verification, limit reposts, score 0.5-0.7 - Level 3: Human review, freeze cluster, score 0.7-0.85 - Level 4: Remove fraud cluster, ban accounts, refer to review platform, score >0.85 + corroboration by 2 independent signals + human sign-off Never automate Level 4 from score alone. --- ## 5. Head B: Trafficking Risk - Governing Bodies + Infrastructure This is the most dangerous head. It must be built with the strongest firewall. CLAIM, NOT FILED: That trafficking occurs from within governing bodies is a hypothesis you asked to model. This file does NOT claim any specific governing body, official, or agency is involved in trafficking. No evidence for a specific accusation is provided here. The model below detects RISK SIGNALS in public data, not guilt. What Head B Actually Detects, MODEL: - A business with trafficking-risk signals (template + movement + control + infrastructure reuse) that ALSO has a public link to a government contract, grant, license, property, or official. - Example public links, MODEL: Business X has a massage license, a city contract for cleaning, a property leased from a city, a campaign donation, a board seat, a procurement award. That link is PUBLIC, not proof of trafficking. - The risk is: If a flagged business is embedded in public procurement, it can use legitimacy to hide, and it can use access to evade detection. MODEL Signals for Head B: 1. Trafficking Risk Score, per cluster: - Template Score: 0-1, from control language + movement language - Movement Score: 0-1, distinct cities in 7 days, same phone hash - Shared Management Score: 0-1, same phone hash across >5 accounts in >3 cities - Infrastructure Reuse Score: from Section 3, normalized 0-1 - Age / Vulnerability Language: Any mention of under-18 is immediate escalation to human review + NCMEC, not scoring. Never store or share that content. Never attempt to identify a minor from an ad. COMPUTED HERE - Trafficking Risk, Schematic: Risk = 0.30*Template + 0.25*Movement + 0.25*SharedManagement + 0.20*InfraReuse If Template=0.9, Movement=0.8, Shared=0.9, Infra=0.7, Risk = 0.27 + 0.20 + 0.225 + 0.14 = 0.835 MODEL: Risk >0.7 = human review queue, NOT public accusation. Risk >0.85 + corroboration = referral packet to NHTH / DHS, NOT to X, NOT to press. 2. Governance Overlap Score, MODEL: - Let G = number of public governance links for a business in cluster: contracts, licenses, grants, property, board seats. - Let R = Trafficking Risk from above. - Governance Risk = R * log(1 + G) - If R=0.835, G=3, Governance Risk = 0.835 * log(4) = 0.835 * 1.386 = 1.157, normalized to 0-1 = 0.72 - MODEL: High Governance Risk means: This cluster is both high trafficking risk AND publicly embedded. That is the priority for human review, because embedding increases harm and decreases detection. 3. Procurement Anomaly, MODEL: - Business wins contract with no prior history, low bid, same address as flagged business, same phone hash as flagged business, same registered agent as flagged business. - FILED / CITED: Public records data, property records and address histories expose networks traffickers depend on. Illicit massage business data is a federated, networked ecosystem. - MODEL: Use public records to link, not private data to accuse. Firewall for Governing Bodies: - Step 1: Graph flags cluster, no names published. - Step 2: Two independent human reviewers, one with anti-trafficking training, one with legal training, review de-identified packet. - Step 3: If packet meets referral threshold, send to NHTH / DHS / FBI, with packet, not with public post. - Step 4: No X post, no press release, no naming of official, until law enforcement confirms. - Step 5: If no corroboration, delete packet after retention period, log false positive for model tuning. - Step 6: Never use engine to target political opponents. Never use engine to investigate a person because of party, race, gender, religion. AMBIGUITY PRESERVED: A governance link can be innocent. A massage business with a city license is normal. A hotel with a trafficking ad is not necessarily complicit. A contractor with same address as flagged business can be a shared office building. The graph cannot know intent. Only investigation can. --- ## 6. How The Two Heads Share A Graph Without Contaminating Each Other MODEL: Review fraud clusters and trafficking clusters sometimes share infrastructure: same IP, same cert, same phone hash, same template factory. - Example, MODEL: A template factory sells 500 fake reviews for a hotel, and also sells ads for an illicit massage business in same hotel. Same phone hash appears in both. Same domain registrar. Same X cluster amplifies both. - The engine must NOT merge them into one accusation. It must keep two scores: Fraud Score and Trafficking Risk, with separate action ladders. - If a cluster scores high on both, it goes to two separate queues: Platform Integrity for fraud, and Law Enforcement Referral for trafficking. The fraud action must not tip off the trafficking investigation. Coordinate via human lead, not via automated post. --- ## 7. Python Engine Skeleton This is a schematic engine, with synthetic data, for research. It does NOT connect to X API, Cloudflare, Google, AWS internal logs, or live ad sites. Replace synthetic loaders with authorized APIs. See diabolical_engine.py in same folder. Key functions: - build_graph(): Creates NetworkX MultiDiGraph with node types from Section 1 - add_semantic_template(): Computes shingle Jaccard, creates TEMPLATE node - add_dns_cluster(): Adds DOMAIN -> IP -> ASN -> NS -> CERT edges, computes Reuse Score - score_review_fraud(): Coordination + Co-review + Template + Burst - score_trafficking_risk(): Template + Movement + SharedManagement + InfraReuse - score_governance_overlap(): Trafficking Risk * log(1+G) - human_review_queue(): Returns only de-identified packets, with risk, evidence, and required corroboration, never names in output for trafficking head - referral_packet(): Formats packet for NHTH / DHS, with chain of custody, no victim data, no images --- ## 8. What Would Make This Engine Diabolical In A Good Way MODEL: Diabolical does not mean cruel. It means it turns the attacker's own infrastructure against them: - They need many names to hide. The graph collapses names into one cluster. - They need many domains to hide. CT logs expose all domains. - They need many X accounts to amplify. Coordination detection exposes amplification. - They need legitimacy from government contracts to hide. Procurement graph exposes legitimacy reuse. - They need templates to scale. Template fingerprinting exposes scale. The engine is diabolical because it does not chase the post. It chases the reuse. The post is cheap. The reuse is expensive to rebuild. --- ## 9. What This Engine Will NOT Do - Will not identify a victim from an ad and contact them. That endangers them. - Will not store CSAM, or images of possible minors. If encountered, stop, report to NCMEC CyberTipline, delete, do not share. - Will not dox a person, official, or business from a score. - Will not use private DMs, private DNS logs, or hacked data. - Will not use race, gender, immigration status, or political party as a signal. - Will not publish a list of suspected traffickers. - Will not automate a ban or arrest from a score. - Will not use X to harass a reviewer. Review fraud is platform action, not public shaming. --- ## 10. Deployment Checklist 1. Legal review: Get counsel for X API, review platform API, CT logs, public records use. 2. IRB / Ethics review: If using ad data, get university / NGO partner. 3. Data retention: Hash phones, delete raw text after 30 days, keep only fingerprints + graph, unless referral requires retention. 4. Human review: 2 reviewers for any trafficking referral, 1 reviewer for fraud Level 3+. 5. Audit log: Every action logged with model version, score, evidence, reviewer ID, no victim data. 6. False positive review: Weekly review of false positives, retune thresholds, publish aggregate false positive rate, not names. 7. Referral: Only to NHTH 1-888-373-7888, DHS 1-866-347-2423, or local FBI, via secure channel, with packet. 8. Transparency: Publish aggregate stats: clusters found, referrals made, fraud removed, no names. End of Model.