Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, Nix 安装 asn

查看 asn 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install asn

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add asn

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

Debian apt已验证 · 92%
sudo apt install asn

Debian stable package indexes · asn · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#asn

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

概览

软件包摘要

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

命令和别名

  • asn

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:server

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 7 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
asncli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本0.81.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v0.81.0

https://github.com/nitefood/asn

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:asn
版本0.81.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/asn
主页https://github.com/nitefood/asn
仓库https://github.com/nitefood/asn
上游文档https://github.com/nitefood/asn#readme
许可证MIT
源码归档https://github.com/nitefood/asn/archive/refs/tags/v0.81.0.tar.gz
依赖aha, bash, coreutils, grepcidr, ipcalc, mtr, nmap
macOS 提供的库jq, whois
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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