Automic VaultAutomic Vault

brew

Install asn with Homebrew, apk, apt, Nix

Organization lookup and server tool (ASN / IPv4 / IPv6 / Prefix / AS Path). Version 0.81.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install asn

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add asn

Alpine Linux edge package indexes · asn · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install asn

Debian stable package indexes · asn · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#asn

nixpkgs package indexes · pkgs/by-name/as/asn/package.nix · source: api.github.com

overview

Package summary

Organization lookup and server tool (ASN / IPv4 / IPv6 / Prefix / AS Path)

Commands and aliases

  • asn

history

Project history and usage

asn is a Bash-based network lookup, recon, and traceroute server tool centered on autonomous systems, prefixes, RPKI validity, BGP statistics, geolocation, reputation, and IP/ASN investigation workflows.

Project history

The nitefood/asn repository was created in July 2020. The README describes a single command-line tool that can also run as a web traceroute server and as a JSON-producing lookup API endpoint.

The project grew beyond simple ASN lookup into a collector of network intelligence APIs and command-line workflows. Its README lists Team Cymru, Prefix Whois, PeeringDB, CAIDA ASRank, RIPEStat, RIPE IPmap, Shodan, Cloudflare Radar, GreyNoise, NVD, IPQualityScore, ipinfo.io, and other data providers as supported inputs.

Adoption history

asn has unusually broad packaging for a shell network tool. The README displays OS support for Debian, Ubuntu, Kali, CentOS, Red Hat, Rocky Linux, Fedora, Arch, Manjaro, Alpine, openSUSE, FreeBSD, Nix, macOS, Windows environments, and Raspberry Pi, and the input package facts list apk, Homebrew, Debian, Nix, and Ubuntu packages.

GitHub metadata shows roughly two thousand stars and active releases through 2026. Homebrew analytics show continuing installs, while the README's Repology badge points at multi-repository packaging status.

How it is used

The common workflow is to run `asn` against an IP address, hostname, prefix, AS number, URL, or organization name and inspect enriched network output. The tool can do AS path tracing with mtr, RPKI checks, organization searches, Shodan recon, country CIDR mapping, bulk geolocation, and JSON output for pipelines.

Configuration is deliberately Unix-like: defaults can be overridden with `$HOME/.asnrc`, and optional API tokens are read from `$HOME/.asn/` for user mode or `/etc/asn/` for server mode. Docker and Google Cloud Shell workflows are documented for users who do not want a local install.

Why package nerds care

asn is significant because it packages a messy incident-response habit, asking several network-intelligence services about an address or ASN, into a scriptable CLI. For package maintainers, it is also an instructive case: a Bash tool with many external command and API integrations, distro packages, container usage, and optional credential files.

It occupies the same practical shelf as whois, dig, mtr, bgp.tools shortcuts, and OSINT helper scripts, but makes the package-manager version matter because release updates can add or repair upstream data-provider integrations.

Timeline

  • 2020: GitHub repository created.
  • 2024: v0.76 and v0.78 releases published.
  • 2025: v0.79 and v0.80 releases published.
  • 2026: v0.81.0 published and listed by Homebrew as the stable version.

Related projects

  • The README documents integrations with mtr, Team Cymru IP to ASN mapping, Prefix Whois, PeeringDB, CAIDA ASRank, RIPEStat, Cloudflare Radar, Shodan, GreyNoise, ipinfo.io, and other network-data services.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:server

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 7 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.asnrc

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.asn/ipinfo_token/etc/asn/ipinfo_token~/.asn/iqs_token/etc/asn/iqs_token~/.asn/cloudflare_token/etc/asn/cloudflare_token

executables

Installed executables

CommandKindExposureNote
asncliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.81.0
manager updated
local dataok
upstreamcurrent
latest detectedv0.81.0

https://github.com/nitefood/asn

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:asn
Version0.81.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/asn
Homepagehttps://github.com/nitefood/asn
Repositoryhttps://github.com/nitefood/asn
Upstream docshttps://github.com/nitefood/asn#readme
LicenseMIT
Source archivehttps://github.com/nitefood/asn/archive/refs/tags/v0.81.0.tar.gz
Dependenciesaha, bash, coreutils, grepcidr, ipcalc, mtr, nmap
Uses from macOSjq, whois
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameasn
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

asn 0.78.0-1

network OSINT CLI ASN, RPKI, BGP, Geo, Recon, Trace

https://github.com/nitefood/asn/

sudo apt install asn
  • Section: net
  • Architecture: all
  • 10 dependencies
  • normalized package name match
  • Matched by: Asn
Debian stable package indexes · deb.debian.org · Debian stable package indexes: asn from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

asn

nix profile install nixpkgs#asn
  • normalized package name match
  • Matched by: Asn
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/as/asn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

asn 0.75.3-1.1

network OSINT CLI ASN, RPKI, BGP, Geo, Recon, Trace

https://github.com/nitefood/asn/

sudo apt install asn
  • Section: universe/net
  • Architecture: all
  • 10 dependencies
  • normalized package name match
  • Matched by: Asn
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: asn from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

asn 0.81.0-r0

ASN Lookup Tool and Traceroute Server

https://github.com/nitefood/asn/

sudo apk add asn
  • License: MIT
  • Architecture: x86_64
  • Source Package: asn
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Asn
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: asn from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment