Repository navigation
feat(labeler): signed DIP-0036 labels from CrushAV (v0.16.0) - #485
Merged
Merged
Conversation
…owser-miner rules; v0.16.0 ThreatCrush becomes the first c0mpute labeler (c0mpute DIP-0036, closes #484): - POST /api/v1/labels/scan (token): CrushAV + hash reputation + reputation of domains a file actively uses -> ed25519-signed labels on sha256:<hex> - POST /api/v1/labels/query (public): labels in force, live reputation re-check - GET /api/v1/labels/log (public, append-only), GET /api/v1/labels/manifest - POST /api/v1/labels/negate (admins): appeals as signed neg records - labeler_labels: append-only (trigger refuses UPDATE/DELETE), RLS, service_role SELECT/INSERT only - CrushAV: CrushAV.Web.PhishKitExfil (password -> Telegram bot / Discord webhook), CrushAV.Web.BrowserMiner (miner started or loaded from a pool) Only malicious-impact detections label. Signature is over a line-framed canonical string a Rust verifier rebuilds byte for byte. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| const t = c.text; | ||
| // The miner being started, not merely named: constructor plus .start(), or a script tag from a miner pool. | ||
| const started = /\b(?:CoinHive|CoinImp|Client|CRLT|WMP|deepMiner|Minero)\.(?:Anonymous|User|Init)\s*\(\s*["'`][\w$]{8,}["'`][\s\S]{0,400}?\.start\s*\(/.test(t); | ||
| const poolScript = /<script\b[^>]*\bsrc\s*=\s*["']?(?:https?:)?\/\/(?:[\w-]+\.)*(?:coinhive\.com|coin-hive\.com|authedmine\.com|crypto-loot\.(?:com|org)|cryptoloot\.pro|webminepool\.com|coinimp\.com|www\.hostingcloud\.racing|minero\.cc|jsecoin\.com|monerominer\.rocks|webmine\.cz)\//i.test(t); |
ThreatCrush Security ScanLocal report — repository account settings and team paging are not connected for this run. CRITICAL: 1 | Warnings: 35 | Silenced warnings: 0 Critical findings remain visible regardless of warning silences. Connect this repository to enable team incident paging.
Manage repository warnings and critical paging. Source snippets and credential material are never sent to the account service or printed in this report. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ThreatCrush becomes the first labeler under c0mpute DIP-0036 (profullstack/c0mpute#437). Closes #484.
Endpoints
POST /api/v1/labels/scan(needs a token): runs CrushAV, hash reputation and reputation of the domains each file actively uses, then returns ed25519-signed labels onsha256:<hex>.POST /api/v1/labels/query(public, rate limited): returns the labels currently in force, after a live reputation re-check.GET /api/v1/labels/log: the append-only public log.GET /api/v1/labels/manifest: labeler DID, public key, label values and appeal address.POST /api/v1/labels/negate(admins only): grants an appeal by appending a signednegrecord.New CrushAV rules
CrushAV.Web.PhishKitExfil: a page that sends passwords to a Telegram bot or Discord webhook.CrushAV.Web.BrowserMiner: an in-browser miner that is actually started, or a script loaded from a miner pool.Hardening
maliciousproduce a label.Tests
The migration
20261122150000_labeler_labels.sqlis applied with migrate-dev2.🤖 Generated with Claude Code