{"adoption": {"forks": 266, "observed_at": "2026-08-28T04:04:14.700573+00:00", "stars": 1285}, "canonical_url": "https://ross.abutalabs.com/products/trojan-source", "card": {"archived": false, "artifact_type": "learning-resource", "description": "Trojan Source: Invisible Vulnerabilities", "domain": ["security", "programming-languages", "developer-tools"], "enriched": true, "function": ["security"], "health_score": 20, "homepage": "https://trojansource.codes", "language": "SCSS", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["nickboucher/trojan-source"], "name": "nickboucher/trojan-source", "platform": ["cross-platform", "c", "cpp", "python", "rust", "go"], "pushed_at": "2023-04-26T08:22:53+00:00", "repo": "nickboucher/trojan-source", "stars": 1285, "tags": ["trojan-source", "unicode", "bidi-characters", "supply-chain-security", "vulnerability-research", "proof-of-concept", "cve-2021-42574", "code-review", "compiler-security", "academic-research", "homoglyph-attacks", "nodejs"], "topics": [], "urls": [], "use_cases": ["learn how unicode bidi control characters can hide vulnerabilities in source code", "test whether a compiler or interpreter is vulnerable to trojan source encoding attacks", "understand supply chain attacks that deceive human code reviewers", "find proofs of concept for CVE-2021-42574 in specific languages", "study mitigations for invisible source code vulnerabilities in editors, repos, and build pipelines", "research academic work on adversarial source code encoding"], "what_it_is": "The reference repository for the Trojan Source attack (CVE-2021-42574), which uses Unicode bidirectional control characters to make source code visually display logic different from what the compiler actually executes. It bundles proofs-of-concept across a dozen languages (C, C++, Java, Rust, Go, Python, Solidity, and more), compiler-level defense guidance, and the companion research paper and website.", "when_to_avoid": ["You need a production-ready scanner that continuously detects malicious Unicode in your repositories rather than research artifacts", "You want an actively maintained security tool with new features instead of a completed research publication", "You need turnkey mitigation tooling for a specific language ecosystem out of the box"], "when_to_choose": ["You are studying or teaching how Trojan Source / bidi reordering attacks on source code work", "You want per-language proofs of concept to verify whether toolchains, editors, or CI pipelines render and compile such code safely", "You are researching supply-chain attack techniques or designing compiler-level and code-review defenses"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/trojan-source", "repo": "nickboucher/trojan-source", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:14.700573+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:56:40.698822+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "34567483903eea39348f85c94db43683a258e1fb397c518f72c476007c8dbdc9", "fetched_at": "2026-08-28T04:04:14.700573+00:00", "kind": "readme", "missing": false, "url": "https://github.com/nickboucher/trojan-source"}, {"content_hash": "931f71c9855e791d82bdc0c7593f97fee93e588014619b0f1a78c198814cf7f5", "fetched_at": "2026-08-29T12:12:21.622460+00:00", "kind": "homepage", "missing": false, "url": "https://trojansource.codes"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1890, "days_push": 1225, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}