Verify Article Consensus
verify_article_consensusAudit search results and news articles to defend against consensus poisoning and Sybil attacks by validating domain authorities and detecting coordinated duplicate content via semantic similarity.
Instructions
Verify web search results or news articles to defend against Consensus Poisoning and Sybil attacks.
Audits domain Top-Level Domains (validating trusted authorities like .gov, .edu) and calculates pairwise semantic cosine similarities to detect coordinated flooding campaigns where multiple untrusted sources syndicate near-identical (similarity > 0.95) fake consensus.
Usage Guidelines:
WHEN TO USE: Use whenever 2 or more web search results, news articles, or online references are retrieved for a breaking topic, controversial issue, or factual query to verify that apparent consensus is not an artificial Sybil campaign.
WHEN NOT TO USE: Do NOT use for individual document text sanitization (use
sanitize_documentinstead) or unsupervised corpus outlier detection (usescan_dataset_for_anomaliesinstead).
Behavior & Side Effects:
Audits domain provenance against verified authoritative TLDs (.gov, .edu, .mil, .int).
Computes pairwise cosine similarity matrix across article embeddings.
Appends timestamped alerts to
security_audit.jsonif a coordinated Sybil attack is detected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| articles | Yes | A list of article objects. Each object must be a dictionary containing: - 'url' (str): The origin URL of the article. - 'text' (str): The body or extracted content of the article. - 'title' (str, optional): The headline/title of the article. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |