National Cyber Warfare Foundation (NCWF)login

machinae for pulling threat intelligence on IPs, domains and hashes from public feeds


0 user ratings
2026-10-29 19:25:13
milo
Red Team (CNA)
"machinae

machinae is a Python 3 OSINT collector that queries two dozen public reputation and intelligence sources for IP addresses, domains, URLs, emails, file hashes and SSL fingerprints during authorized investigations.








ToolHurricaneLabs/machinae — security intelligence collector for public sites and feeds, successor in spirit to Automater
CategoryPython 3 threat intelligence / OSINT aggregation CLI
Primary UseBatch enrichment of observables such as ipv4, fqdn, hash, email, sslfp and url across configured intel sources during incident triage
Safe UsePassive lookups only; designed for authorized incident response, SOC triage, and defensive research on indicators you already hold
Telemetry NoteSends every queried observable to third-party public APIs (VirusTotal, GreyNoise, etc.), which can tip off operators of malicious infrastructure; HTTP User-Agent and API-key usage are visible to those providers and via configured proxies

machinae from HurricaneLabs is a command-line intelligence collector that takes security observables — IP addresses, domain names, URLs, email addresses, file hashes and SSL fingerprints — and fans them out across a configurable roster of public sites and feeds. The project openly acknowledges its lineage: it was inspired by Automater, and its four founding goals were to bring that tool to python3, replace its configuration with human-readable YAML, parse JSON natively instead of leaning on regular expressions, and broaden output options. The result is a defensive enrichment engine, not an attack tool — it never touches the target, it only asks third parties what they know about it.


Internally, the architecture is configuration-driven to an unusual degree. Each data source is described declaratively in machinae.yml, and the engine handles request construction, JSON parsing, regex scraping fallbacks, and result formatting based on that config. This is what lets an operator add or disable sources without writing code, and it explains the project's emphasis on config merging: a system-wide default at /etc/machinae.yml is overlaid by /etc/machinae.local.yml and then a per-user ~/.machinae.yml, so upstream config updates never clobber local customizations. Disabling merging entirely is possible with --nomerge, and the active config can be pinned via MACHINAE_CONFIG or -c.


A concrete example from the README shows the intended workflow: to enable the default-off Fortinet Category lookup, you add fortinet_classify: default: true to a local overlay rather than editing the shipped file. The same pattern works in reverse for muting noisy sources — the VirusTotal passive DNS scrapes (vt_ip, vt_domain) can be set to default: false so they stop firing on every run. This per-site boolean gating, combined with otype filtering, is the core routing logic: machinae auto-detects whether each target is an ipv4, ipv6, fqdn, email, sslfp, hash or url, and only the sources whose declared observable type matches will run against it.


Installation is a standard pip3 install machinae, or pip3 install git+https://github.com/HurricaneLabs/machinae.git for the bleeding edge. On Debian-family systems the README calls out two build prerequisites: python3-dev for compiling Python modules and libyaml-dev for the YAML parser's C bindings. After install, you fetch the latest configuration file and place it at /etc/machinae.yml, because the shipped config is where all the source definitions live and it evolves independently of the code.


The out-of-the-box source list is genuinely broad for a 2015-era tool: IPVoid, URLVoid, a URL unshortener, Malc0de, SANS, FreeGeoIP, Fortinet Category, three flavors of VirusTotal (web-scraped passive DNS plus JSON API variants for pDNS, URL and file reports), Reputation Authority, ThreatExpert, VxVault, ProjectHoneypot, McAfee Threat Intelligence, StopForumSpam, Cymru MHR, ICSI Certificate Notary, TotalHash, DomainTools, RIR-based IP WHOIS, Hacked IP, and API-key-gated sources including Metadefender Cloud, GreyNoise and IBM XForce. That mix of free scraping and premium APIs, all normalized behind one config schema, is the tool's real value proposition.


Notably, a second tier of sources ships disabled by default — Shodan, PassiveTotal across five configurations (passive DNS, whois, SSL certificate history, host attribute components and trackers), MaxMind GeoIP2, FraudGuard, Telize, and the key-required commercial feeds. The -s flag selects sites explicitly by their top-level config key, and the special keyword all runs everything including the default-off entries, subject to otype validation. This gives analysts a fast lane for deep-diving a single indicator versus a routine sweep.


Credentials for authenticated sources live in a separate YAML file passed via -a/--auth, mapping a site key to a two-element list of username and password or API key — the README's example is passivetotal: ['[email protected]', 'my_api_key']. Site configs reference that key under request: auth:, keeping secrets out of the main config. It is a simple scheme with no vaulting or encryption, so treat the auth file as sensitive and scope its permissions accordingly. Egress control is handled by -H/--http-proxy, with fallback to the standard HTTP_PROXY/HTTPS_PROXY environment variables plus their lowercase variants — useful for routing lookups through a monitoring proxy so you can audit exactly which indicators left the building.


Output is deliberately spare: -o N for normal text (the default), -o D for the same with dot characters replaced — a defanging mode, which matters because version 1.4.1 also added automatic defanging of output, a thoughtful touch for reports that will be pasted into tickets or chat — and -o J for structured JSON suitable for piping into downstream tooling. -f redirects to a file, -i ingests a target list from a file for batch runs, and -v/-q toggle the per-service status chatter that always goes to stdout. MISP support was added in 1.4.1 with an example in the shipped config, pointing at how machinae was meant to sit inside a larger intelligence pipeline.


The version history tells a story of a tool that matured quickly and then went quiet. Initial release was July 2015, with rapid iteration through 2016 adding pagination, ISO-8601 timestamp normalization, multiple JSON document handling, relative time parameters via relatime, per-API ignored status codes, and premium sources like DNSDB from FarSight. The last entry is 1.4.9 from November 2020, a one-line fix for epoch-time handling in JSON output. Anyone deploying it today should verify which of the two dozen sources still have live endpoints — several free services from that era have since shut down or changed hands — and expect to edit the YAML accordingly.


The roadmap section, marked as coming soon for adding sites, plus the "Upcoming Features" list (IDS rule search for VRT/ET rulesets, per-otype request settings, result deduplication, per-site error output), sketches where the authors wanted to take it, but none of that should be assumed present. The single documented known issue — double-encoded HTML entities from some ISPs on IPVoid not being double-decoded — is a useful reminder that scraping-based sources are inherently fragile compared to the JSON API ones.


For defenders, the operational footprint is worth stating plainly: machinae is passive from the target's perspective but very visible to the intel providers. Every observable you feed it gets submitted to VirusTotal, GreyNoise, StopForumSpam and the rest, which is exactly what you want when triaging a compromise but exactly wrong if you are investigating infrastructure whose operators watch those same feeds for tips. The proxy support and config-driven source selection exist partly so you can be deliberate about that trade-off, restricting queries to sources you are comfortable informing. Within an authorized incident response or SOC enrichment workflow, that combination of batch input, otype routing, layered config, and JSON output keeps machinae a legitimately useful pattern to study even years after its last commit.



Official project repository for HurricaneLabs/machinae.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/machinae-for-pulling-threat.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.