Skip to content

About

A next-generation AI distributed asset scanning platform that integrates API analysis, sensitive information identification, and automated attack capabilities.

Topics

Resources

Stars

63 stars

Watchers

4 watching

Forks

Repository files navigation

LOGO

Version Deployment Usage Stars Issues

A next-generation full-network attack surface analysis platform, providing globally distributed regional mapping, API interface analysis, sensitive information analysis, and automated vulnerability exploitation.


Introduction

NextAssets is an automated asset discovery and management platform for cybersecurity practitioners and internet intelligence analysts. It supports multi-dimensional cyberspace mapping and asset management, covering core information such as domains, IPs, and ports. The platform provides HTTP/HTTPS scanning, security scanning, vulnerability scanning, component and fingerprint identification, automated Fuzzing, JavaScript security analysis, and SSL certificate analysis, enabling efficient cyberspace mapping and threat correlation analysis.

Collected scan results are automatically cleaned and deduplicated, and the system supports automated monitoring of SRC (Security Response Center) programs.

Screenshots

The interface screenshots below were updated on 1 December 2026 to match the current console. Asset Center, task and node shots still include results from the authorized 30 November 2026 scan of the team’s domain gh0xe9.top on two Tencent Cloud 2C2G scanner nodes. AWS shots still use a local moto mock, not a real cloud account. The UI language can be switched between English and 中文 in the top-right corner.

Sign-in page Dashboard
Sign-in page Dashboard
Asset Center Asset detail
Asset Center Asset detail
Task detail and findings Scan strategies
Task detail and findings Scan strategy templates
Scanner nodes Notification settings
Scanner nodes Notification settings
Exposure monitoring Users and permissions
Exposure monitoring Users and permissions
AWS asset sync Synced AWS assets
AWS asset sync (local moto mock) Synced AWS assets (local moto mock)
Switching the UI language Asset changes
Switching the UI language Asset changes

The following shots are from that same cloud walkthrough (Chinese UI unless noted). Credentials are redacted.

Cloud dispatch form

Cloud nodes online

Completed task

AI-assisted dispatch and detection rules (December 2026)

Describe a job in one sentence; the assistant creates the project, dispatches the dual-engine scan and reports back the task number.

AI assistant dispatching a scan

When the scan finishes, ask for the outcome and the assistant summarizes every host and finding, including the captured weak-credential evidence.

AI assistant summarizing findings

The new Detection rules page keeps the user fingerprint library and the Nuclei template library; whatever is enabled ships with every scan task.

Fingerprint library

Nuclei template library

The task wizard gains a Nuclei engine checkbox and a subdomain brute-force switch.

Task wizard with Nuclei and subdomain options

Every finding lands in the Vulnerability Center, linked back to its asset.

Vulnerability Center

Third-party scan results go into the Asset Center through the import dialog.

Import scan results

Enterprise intel — ICP filings and equity graphs — lives on its own page.

Enterprise intel

Scan logs stream back per event in the task detail.

Live scan logs

Product lifecycle

The diagram below is the current product loop: create a project, attach scanner nodes, dispatch a scan, control it (pause, resume from a checkpoint, retry), file the results, watch for changes, notify, and export. AWS sync is an optional way to add EC2 instances and Elastic IPs to the same inventory.

NextAssets lifecycle flowchart

Every screenshot in this section is from the English UI of a local demo. Scan targets were services started on the same machine. AWS screenshots used a local moto mock endpoint, not a real cloud account.

1. Sign in

The interface defaults to English. You can still switch to 中文 from the control in the corner. In the English UI the product name is NextAssets.

Sign-in page

2. Create a project

A project is the container for tasks, assets, monitoring, and exports.

Create a project

Dashboard

3. Configure scanner nodes

Register a node, copy the connect info, and wait until the scanner is online.

Create a scanner node

Node connect information

Node online

4–5. Set targets, parameters, and dispatch the scan

Enter authorized targets, choose engines and parameters, then confirm dispatch. Work is queued to online nodes.

Task targets

Scan parameters

Confirm dispatch

Project tasks

6. Run, pause, resume, checkpoint, and retry

A running task can be paused and later resumed from a checkpoint. The task detail view shows progress and how many targets have already been checkpointed. Failed work can be retried, and System Settings → Default scan parameters controls automatic retries, backoff, and auto-resume after an interruption.

Task detail while running

A running scan with Pause and a checkpoint count

Task paused, ready to resume from the checkpoint

Automatic retry and auto-resume settings

7. Assets and findings

Ports, services, fingerprints, certificates, and findings are deduplicated into the project inventory.

Asset Center

Asset detail

8–9. Change monitoring and notifications

Schedule rescans on a project, review change history, and send notifications when the surface moves. The notification language is set under System Settings → Notifications.

Scheduled rescans and change history

Notification settings

10. Export reports

Export the current project or task as Excel or PDF. The report language follows the UI language.

Export menu

After exporting a report

AWS asset sync (optional)

You can also sync AWS EC2 instances and Elastic IPs into the same project. The screenshots below used a local mock endpoint, not a real account.

AWS asset sync settings

Synced AWS assets

Features

Scanning Engines

  • Dual-engine distributed scanning: the in-house NextAssets mapping engine (port scanning / service identification / web probing / website screenshots / GeoIP-ASN attribution, plus sensitive-information and API / JS endpoint collection, with optional directory probing and same-origin crawling) and the embedded fscan engine (fingerprinting, plus optional weak-credential and bundled POC checks). A task can run one engine or both at once against the same targets; results merge onto the same assets. fscan hits go to the vulnerability store and do not fill the Sensitive information or API columns. fscan flags are exposed as switches, selects and inputs in the task wizard — you do not need to assemble the command line by hand. POC scanning is a first-class option in the task wizard, templates and schedules (off by default); when it is on, the bundled fscan check set runs. Lite does not ship a separately maintained NextAssets POC pack, and the UI never shows payloads
  • Target slicing: mixed targets (URL, IP, domain, or CIDR) are normalized and split; large CIDRs (/24 IPv4, /120 IPv6) and multi-target lists are round-robin sliced across all online nodes — queued, resumed if a node drops, and picked up by autoscale replacement nodes
  • Unlimited task duration: tasks run with no time limit by default until completion or manual cancellation; live progress and per-event logs (open ports / services / weak credentials / POC hits) stream back in real time

Distributed Architecture

  • Multi-cloud elastic nodes: save one or more named Tencent Cloud and AWS accounts, then choose which account(s) to use when dispatching scanner nodes; cloud-init installs the scanner automatically and nodes register themselves on boot
  • Message-driven: NATS JetStream persistent task queues, node registration / heartbeats / token auth, automatic reconnection and task redelivery on interruption
  • Adjustable concurrency: per-node concurrent task count is configurable — multiple tasks and engines run without blocking each other

Passive mapping

  • FOFA / Hunter / Quake: in Settings, store official API credentials (encrypted, never echoed). On the Passive mapping page, select one or more platforms, enter your own query syntax, request the match count first, then pull a chosen number of assets to local storage
  • Same scan pipeline: import a pull job (or selected rows) into the existing task-create wizard, or dispatch a scan directly from the Passive mapping page. Either path uses the same target normalization, CIDR split, multi-node sharding, queue, and resume flow

Enterprise intel

  • ICP filing lookup (/intel): enter a company to list every website it has filed, with license number, domains, site name and filing company; the result is matched against the asset center, and the filed domains can be sent to a scan in one click
  • Equity penetration: an interactive graph of a company's holdings (Qichacha outbound-investment tree, or Tianyancha actual-control chains); click a node to penetrate that company
  • Qichacha or Tianyancha: store either vendor's open-platform credentials in Settings (encrypted, never echoed). Lookups are billed by the vendor, so each keyword is cached locally for 24 hours and every call is recorded in the query history

Detection rules & import

  • User fingerprint library (/rules): custom web fingerprint rules (header / body / title / favicon-hash conditions ANDed together, with version-extraction regexes) ship with every scan task alongside the built-in engine rules; YAML / JSON bulk import and an offline rule tester are built in
  • Nuclei engine: maintain a Nuclei YAML template library (multi-document import, content dedupe, per-template enable / disable); tasks that select the Nuclei engine carry the enabled templates to the node, and hits land in the Vulnerability Center linked to their assets. The scanner image bundles the nuclei binary
  • Subdomain brute force: a task-wizard switch backed by a built-in ~100k-word dictionary, with cancellation, wildcard-DNS filtering, a custom wordlist and a size cap; discovered subdomains join the same scan as first-class assets
  • Import scan results: paste third-party results into the Asset Center — plain lines, fscan output, Nuclei JSONL and nmap XML are auto-detected — archived under the project, with one-click rescan over the parsed targets

Operations console

  • Scan strategy templates: built-in presets (common ports, Web, passive-pull-then-active-verify) plus user-saved templates (ports, engines, fscan options, node policy). Apply one in a click from the task-create wizard
  • Scheduled scans: cron or a fixed interval, shown in the console timezone (default Asia/Shanghai). Enable, disable, run now, and inspect run history and the next run time. Only the targets you specify are scanned
  • Asset change diffs: compare two completed scans (or successive scans of the same project) to see assets added, disappeared, and port / service changes
  • Notifications: DingTalk, Feishu, WeCom and webhook channels fire on task completion or failure, node offline, new risks, certificate expiry, watched ports and asset changes. Bodies never include secrets. Channels can be tested from Settings
  • Exposure monitoring: periodically evaluate the known inventory for certificate expiry windows and watched / critical open ports, surface findings on the Exposure monitoring page, and alert through the same channels. Defaults avoid repeat spam; windows and port lists are configurable. No new public probes are sent
  • Full exports: server-side CSV / JSON of all matching assets (current filters), a report for selected assets, and a task- or project-level full export — not only the rows loaded in the table
  • Multi-user RBAC: administrator, read-only, and project-only roles. The existing admin account is kept and cannot be locked out. User management lives in Settings; APIs enforce the same permissions as the UI
  • AI assistant that operates the platform: configure a function-calling model in Settings, then describe a job in chat; the assistant calls the same tools as MCP with your RBAC, asks you to confirm billable or destructive actions, collects credentials through a secure masked card that never reaches the model, and records every call in the AI audit log
  • Official MCP interface: AI clients can operate the platform over the Model Context Protocol (Streamable HTTP at /mcp on the same UI port, plus an optional stdio helper). Personal access tokens are issued in Settings, shown once, and can be revoked. The same RBAC as the console applies; tool results never include secrets

Data & Visualization

  • Asset management: project → task → asset pipeline; assets auto-deduplicated across tasks (hash aggregation) with source-task tags and full CRUD
  • Vulnerability Center: a first-class /vulns page lists corroborated findings across all assets (for example SSH weak credentials and bundled POC names), with filters, export, and links back to the asset. Weak-credential and unauthenticated-access hits are recorded only when the service fingerprint or an identifying response supports them; generic HTTP 200 results and exact duplicates are not stored. The per-asset Vulnerabilities tab uses the same store.
  • Bundled POC scan: create-task, templates and schedules expose POC scanning as a first-class option. When it is on, the bundled fscan check set runs (and weak-credential checks if that toggle is also on), including in dual-engine nextassets,fscan tasks. Lite does not ship a separately maintained NextAssets POC pack, and the UI never shows payloads. The option stays off by default.
  • DSL search: exact and combined queries over ip / domain / port / hash / country and more
  • Visualization: site relation graph (task-asset force-directed graph), daily discovery trends, asset distribution stats
  • Full logs: scan process logs are persisted line-by-line to the database and fully reviewable in task details

Deployment & Operations

  • Out of the box: ./scripts/up.sh -d (or make up) generates a first-run .env only when it is missing, then boots PostgreSQL / Redis / NATS / the platform with automatic DB migration. An existing .env is never overwritten
  • Visual configuration: named Tencent Cloud and AWS accounts, public NATS address, scanner image, default scan parameters — all stored in the database and editable in the web UI
  • Screenshot evidence: web assets are automatically screenshotted and archived
  • English and Chinese UI: the whole frontend is available in English and Simplified Chinese, defaults to English, and can be switched from the header or the sign-in page; backend, scanner and startup logs are in English; exported reports follow the UI language and the notification language is set under System Settings → Notifications
  • AWS asset source: read-only sync of EC2 instances and Elastic IPs from one or more AWS accounts into the Asset Center with the official AWS SDK for Go v2; credentials are encrypted at rest (see "AWS asset source" below)

Asset polling usage — use the command-line version first, it works better than the built-in one

# /etc/crontab
0 3 * * 1 /tools/scanner -d example.com,blog.example.com --brute -t 64 -g "演示站点"

Lite Deployment

Step-by-step deployment of the current version (platform + distributed scanner nodes, all images built locally). Every screenshot comes from a real deployment on Debian 13 with Docker 26.1 and Compose 2.26, with the terminal and browser on the same desktop. Passwords, tokens and the account seed are redacted in the screenshots.

On a fresh host, run ./scripts/up.sh -d (or make up). If .env is missing, scripts/gen-env.sh creates it from .env.example with random secrets and NATS callout keys. If .env already exists it is left untouched. Compose interpolation cannot invent secrets by itself, so generate the file first (the helper does this) and then start the stack. You can still copy .env.example and edit values by hand if you prefer.

0. Prerequisites

  • A Linux host with Docker and the Compose v2 plugin (docker compose version prints a version), git and openssl.
  • Ports: web 18080 (every API requires login); NATS 14222 (bound to 127.0.0.1 by default, only exposed when remote nodes connect).
  • Building the images needs access to npm and the Go module proxy; set NPM_REGISTRY / GOPROXY in .env to use mirrors (see the end of .env.example).

Prerequisites

1. Clone

git clone https://github.com/Gh0xE9/NextAssets.git
cd NextAssets

Clone

The screenshot clones from an internal mirror whose content matches the GitHub repository once synced.

2. Configure .env

Generate the file once, then start (this is what ./scripts/up.sh and make up do):

./scripts/gen-env.sh
# optional: edit ADMIN_PASSWORD, WEB_BIND, NPM_REGISTRY, GOPROXY, …
docker compose --profile agent build
docker compose up -d

gen-env.sh is a no-op when .env already exists. It needs Go once (or a built backend/nextassets binary) so NATS callout keys can be generated. To fill an existing copy by hand instead:

cp .env.example .env
# replace the four infrastructure passwords with long random strings
for k in POSTGRES_PASSWORD REDIS_PASSWORD NATS_TOKEN NATS_SYS_PASSWORD; do
  sed -i "s/^$k=.*/$k=$(openssl rand -hex 24)/" .env
done
# account key for per-node NATS auth (auth callout): line 1 is the seed (SA...), line 2 the public key (A...)
docker run --rm natsio/nats-box nk -gen account -pubout > /tmp/nk.txt
sed -i "s/^NATS_CALLOUT_SEED=.*/NATS_CALLOUT_SEED=$(sed -n 1p /tmp/nk.txt)/; s/^NATS_CALLOUT_ISSUER=.*/NATS_CALLOUT_ISSUER=$(sed -n 2p /tmp/nk.txt)/" .env
rm -f /tmp/nk.txt
# master key that encrypts cloud credentials, the AI key and notification webhooks (back it up; without it saved secrets cannot be decrypted)
sed -i "s/^SECRET_KEY=.*/SECRET_KEY=$(openssl rand -hex 32)/" .env

Configure .env

Variable Purpose
POSTGRES_PASSWORD / REDIS_PASSWORD Database and Redis passwords, required
NATS_TOKEN Password the platform itself uses for NATS (NATS user platform), required
NATS_SYS_PASSWORD NATS system account password, used to disconnect a node when it is deleted or its token is reset, required
NATS_CALLOUT_SEED / NATS_CALLOUT_ISSUER Signing key for per-node credentials, required. With Go installed you can also run cd backend && go run . gen-nats-key
ADMIN_USER / ADMIN_PASSWORD Admin account. If ADMIN_PASSWORD is empty a random password is generated on first start and must be changed at first login
SECRET_KEY Master key for encrypting sensitive settings, recommended
WEB_BIND / WEB_PORT Web listener, default 0.0.0.0:18080; use 127.0.0.1 for local-only access
NATS_BIND / NATS_PORT NATS listener, default 127.0.0.1:14222
SCANNER_NODE_ID / SCANNER_NODE_TOKEN Credentials of the local scanner node, filled in at step 6

3. Build the images

All images are built locally from source (nextassets-platform contains the frontend and backend, nextassets-scanner is the scanner node); no prebuilt Docker Hub images are needed.

docker compose --profile agent build
docker images | grep nextassets

Build images

4. Start

docker compose up -d
docker compose ps

The platform consists of 4 services: PostgreSQL 16, Redis 7, NATS 2 (JetStream + per-node auth) and the platform backend. Tables and migrations are created automatically on first start.

Start

5. First login and password change

With ADMIN_PASSWORD empty, the initial password is printed only in the backend log of the first start:

docker compose logs backend | grep -A2 "admin account initialized"

Initial password in the log

Open http://<server IP>:18080 and sign in as admin with the initial password:

Login

After signing in with the generated password, a "Change admin password" dialog is forced before anything else can be used:

Forced password change

Dashboard

6. Add and connect a scanner node

  1. On the "Nodes" page click "Add node", enter a name and click "Create and generate connect command":

    Add node

  2. The dialog shows the node ID, the node token and the start command. The token is shown only once; the platform stores only its hash, and a lost token can be reset from the node actions. Each node uses its own NATS credentials (user node-<ID>, password = node token) and can only access its own task, result, heartbeat and cancel subjects; deleting a node or resetting its token disconnects it immediately.

    Connect info

  3. Local node (same machine as the platform, over the compose network): put the node ID and token into .env and start the scanner service.

    # .env
    SCANNER_NODE_ID=<node ID from the dialog>
    SCANNER_NODE_TOKEN=<token from the dialog>
    
    docker compose --profile agent up -d scanner
    docker compose logs scanner | tail

    The node is connected once the log shows it connected to NATS and subscribed to scan.tasks.<ID>:

    Start the local node

    Back on the "Nodes" page the node is "Online":

    Node online

  4. Remote nodes (other machines): set the node connect address under "System Settings → Scanner nodes" (for example nats://<platform public IP>:14222), change NATS_BIND to 0.0.0.0 in .env, run docker compose up -d nats, and allow only the scanner IPs in your firewall. Then run the "Docker" or "Binary" start command from the dialog on the scanning machine.

GeoLite2 note: due to the MaxMind EULA, GeoLite2-City.mmdb / GeoLite2-ASN.mmdb are not distributed with this repository. For ASN and geolocation data, download them yourself and place them in ./scanner/mmdb/ (mounted read-only at /app/mmdb in the scanner container); scanning works without them. The scanner image also ships a DB-IP IP to Country Lite database (CC-BY 4.0) as a fallback so public addresses still get a country name when GeoLite2 files are not mounted.

7. First project and scan

Only scan targets you own or are authorized to test. The demo target below is a temporary nginx container on the compose network.

docker run -d --name demo-web --network nextassets_default nginx:alpine
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' demo-web

Demo target

  1. "Projects" → "New project":

    New project

  2. Open the project and click "Create task". Step 1: paste targets (IPs, CIDRs, domains and URLs can be mixed and are detected automatically):

    Targets

  3. Step 2: engines and parameters — you can select NextAssets, fscan, or both. Shared options include the port preset, concurrency and timeout. The NextAssets engine can also take screenshots, run directory probing (small built-in wordlist, rate limited) and a same-origin crawler; the wizard shows a short remark for what each engine fills:

    Parameters

  4. Step 3: review the summary and click "Dispatch":

    Confirm

  5. When the task finishes, results are available on the project, task detail and asset detail pages. Tasks can be paused, resumed from checkpoint and retried automatically on failure; the project page can export Excel / PDF reports, and its "Monitoring & changes" tab enables scheduled rescans with DingTalk / Feishu / WeCom / Webhook notifications.

    Project tasks

    Task detail

    Asset detail

8. Troubleshooting

docker compose --profile agent ps -a                      # service status
docker compose exec -T backend wget -qO- http://nats:8222/healthz
docker compose logs --tail 50 backend                     # platform log
docker compose logs --tail 50 scanner                     # node log

Troubleshooting

  • docker compose says a variable must be set in .env: that variable is empty; go back to step 2.
  • backend keeps restarting with Redis connection failed: … i/o timeout (or a NATS timeout): containers cannot reach each other, usually because the host firewall blocks forwarding on the Docker bridge. Check iptables -S FORWARD (and iptables-legacy -S FORWARD) for a default DROP policy, allow forwarding for the Docker bridges (br-*) and restart.
  • The build fails at pnpm install with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH: the checkout is outdated; git pull and rebuild.
  • A node stays "Not connected": check docker compose logs scanner. Authorization Violation means the ID or token is wrong (the token is shown once; reset it from the node actions, update .env and run docker compose --profile agent up -d scanner). For remote nodes also check the connect address, NATS_BIND and the firewall.
  • Lost the initial password: it appears only once in the log of the first initialization. If there is no data yet, docker compose down -v removes the volumes and up -d initializes again (this deletes all data).
  • PDF reports fail: the platform image ships a CJK font; when running a self-built binary, install a TrueType CJK font such as wqy-zenhei or point NEXTASSETS_PDF_FONT to a .ttf / .ttc file.
  • Upgrade: git pull && docker compose --profile agent build && docker compose --profile agent up -d.

Business settings live in the system_settings table and are edited on the "System Settings" page: default scan parameters, failure retry and interrupted-task resume, notification channels, scanner image and node connect address (platform.public_nats_url), default cloud instance settings, the AI assistant endpoint and the notification language. Named Tencent Cloud and AWS accounts are stored in the cloud_accounts table (System Settings → Cloud nodes / AWS). Secrets are write-only and are encrypted at rest when SECRET_KEY is set.

Cloud-native scanner nodes (Tencent Cloud / AWS)

You can save one or more named Tencent Cloud accounts and one or more named AWS accounts under System Settings → Cloud nodes (Tencent Cloud) and System Settings → AWS. Each account needs credentials and a default region. Image, VPC, subnet and security group IDs are optional overrides; when they are left empty, the platform looks up a usable Ubuntu image and a default network automatically. Secrets are write-only and are stored AES-GCM encrypted when SECRET_KEY is set; a change to one account does not rewrite the others.

To dispatch scanner nodes, first set the node connect address (platform.public_nats_url) and a scanner image download URL (scanner.image_url, an HTTPS archive the instance can docker load) under System Settings → Scanner nodes. Cloud hosts cannot use an image that exists only on your laptop. If the platform has no public ingress, forward local NATS 127.0.0.1:14222 with frp (see below) and put the public nats:// URL in the connect address.

Then open Nodes → Cloud nodes, select the account(s) to use, pick a host rule from the live sellable types (in the 30 November 2026 walkthrough, 1C1G and 1C2G were not offered in ap-guangzhou; the lowest rule was 2C2G / S5.MEDIUM2), and set how many instances to create. The platform chooses a matching instance type, an Ubuntu image and a default network when those fields are left empty, records a scanner node, starts a pay-as-you-go instance with a 20 GB system disk, and cloud-init installs and registers the scanner over NATS after boot. The resulting nodes appear on the Nodes page. Failures are reported per account; a problem in one account does not cancel work already submitted on the others. Terminate the instances when you are done.

Node connect address

Dispatch form

Cloud nodes online

AWS accounts used for node dispatch need IAM permission to list instance types, images and networks, and to run, describe, tag and terminate instances (see docs/aws.md). Do not point these accounts at third-party scan targets; only provision nodes in accounts you own.

Reach NATS with frp

When the platform binds NATS to 127.0.0.1 and has no public ingress, run frp v0.72.0 (a version written as 0.0.72.0 refers to this release) on both sides. frps and frpc must be the same version.

On a host with a public IP:

# frps.toml
bindPort = 7000
auth.token = "replace-with-a-long-random-token"

On the platform host, forward local NATS:

# frpc.toml
serverAddr = "YOUR_FRPS_PUBLIC_IP"
serverPort = 7000
auth.token = "replace-with-a-long-random-token"

[[proxies]]
name = "nats"
type = "tcp"
localIP = "127.0.0.1"
localPort = 14222
remotePort = 14222

Then set the node connect address to nats://YOUR_FRPS_PUBLIC_IP:14222. Restrict firewall sources to the platform and the scanner nodes. Do not commit a real token.

Asset Center

Asset rows are a single compact line (about 40px). A gear button next to Refresh chooses which columns are visible; the choice is stored in the browser. Per-asset counts for sensitive findings, API endpoints, URLs, JavaScript files and vulnerabilities appear as columns and as header cards. A count of zero is grey; clicking a count opens the matching detail tab, including the Vulnerabilities tab. Export all as CSV / Export all as JSON writes every asset that matches the current filters (up to 50,000 rows), not only the rows already loaded on the page. Selected rows can be exported as a report. Project and task pages still export Excel and PDF.

Asset Center

Batch operations

Asset, task, project and node lists support checkboxes, Shift-click ranges and a selection bar (export, tags and batch delete; tasks also offer pause, resume, retry and cancel, plus deleting dispatched tasks — a running task is cancelled first, and discovered assets stay in Asset Center). Long task names and target lists in Task Center are truncated, with the full text on hover. Filters on Task Center (project, status, node) accept multiple values. On the new-task wizard, selecting no node assigns work automatically, one node pins the task, and two or more (or the shard toggle) split targets across those nodes. If a node still has unfinished work, a normal delete skips it; Force-delete and requeue removes the node after confirmation and requeues the unfinished work onto other online nodes.

Task multi-select

Auto-scaling policy

Nodes → Auto-scaling keeps a pool of cloud scanner nodes alive without manual dispatch. Pick a cloud account, an optional region and a host rule (for example 2C2G), then set:

  • Min / max nodes: the controller provisions nodes when fewer than min cloud nodes are online (nodes still booting count), and terminates idle policy nodes when more than max are online. When min is 0 it still starts one node if tasks are waiting and no node can run them.
  • Instance cap (default 3): the most instances the policy may own at once, whatever the other settings say. It must be ≥ max nodes.
  • Scale-up cooldown: the minimum gap between scale-ups. Provider errors back off exponentially; billing, quota and credential errors (for example InsufficientBalance) start at 30 minutes and are shown on the tab. Saving the policy again clears the backoff and retries now.
  • Scale down when idle / idle timeout: optionally terminate policy nodes that have been idle longer than the timeout while above min.
  • Active hours (optional, HH:MM–HH:MM): outside the window no new nodes are started.

About every 45 seconds the controller, which holds a Redis leader lock so only one backend replica acts, compares the policy with the online nodes and the account's instance list. A policy node whose instance disappeared or stopped, never sent a heartbeat within 15 minutes, or stayed offline for 10 minutes is marked offline and replaced. Its dispatched or running tasks are requeued as interrupted and resume from their checkpoint on another online node (usually the new one): completed targets are skipped, and late results from the old attempt are discarded, so nothing is scanned twice. While the policy is on, interrupted tasks resume even if scan.auto_resume is off.

The controller only terminates nodes that it created itself and that have no running task. Manually dispatched cloud nodes and local nodes are never terminated. Dry run shows what the controller would do right now without touching the cloud, and the events table records every scale-up, scale-down, replacement and error. To try the feature without a cloud bill, start the backend with NEXTASSETS_AUTOSCALE_FAKE=1: the cloud pages and the controller then use an in-memory simulated cloud.

The screenshot below used the simulated cloud (NEXTASSETS_AUTOSCALE_FAKE=1) so the UI can be shown without a bill; the test-mode banner was removed.

Auto-scaling policy

Passive mapping

Open System Settings → Passive mapping and store official API credentials (FOFA email and API Key, Qianxin Hunter OpenAPI key, 360 Quake X-QuakeToken). Secrets are encrypted and never echoed. Then open Passive mapping (/passive):

  1. Select one or more platforms and enter each platform’s own query syntax (the languages are not interchangeable; use the vendor’s official documentation).
  2. Click Query count to see how many records the query matches.
  3. Enter a Pull size and click Pull assets to store that many records locally.

From the same page, use Scan selected or Scan all, or open the new-task wizard and choose Import from passive mapping. Both paths use the same pipeline: URL / IP / domain / CIDR normalization, CIDR splitting, multi-node sharding, queueing, and resume if a node drops (including a node started by auto-scaling). Only scan addresses you are authorized to test.

Passive mapping

Enterprise intel

Open System Settings → Enterprise intel, choose the provider and store its credentials: Qichacha AppKey + SecretKey (Account Security page of the Qichacha open platform) or the Tianyancha Authorization token. Secrets are encrypted and never echoed. Test Qichacha / Test Tianyancha validates the saved credentials with a keyword that matches no record, so it is normally not billed. Then open Enterprise intel (/intel):

  1. ICP filing lookup: enter the filing company (Qichacha files records by company; Tianyancha also accepts a domain). The table lists the filed websites; domains already in the asset center are tagged, and Scan selected / Scan all domains sends them to the task-create wizard.
  2. Equity penetration: enter a company and the depth. The graph shows holder → invested company with the holding percent on each arrow; click a company to penetrate it, and use the path tags to go back.

Both providers bill per successful query. The same keyword is served from a local cache for 24 hours; tick Force refresh to query again. The Query history card records every call (provider, result count, duration, user) so the bill can be reconciled.

Scan strategies

Scan strategies (/schedules) has two tabs. Strategy templates includes the built-in presets Common ports, Web, and Passive pull, then active verify, plus any templates you save (ports, engine, fscan options, node policy). Apply one in the new-task wizard with Use a strategy template. fscan options are switches, selects and inputs — not a raw command line.

Scheduled scans creates tasks on a fixed interval (minimum 5 minutes) or a five-field cron expression, in Asia/Shanghai, UTC, America/New_York or Europe/London (default Asia/Shanghai). You can enable or disable a plan, Run now, and inspect History and the next run time. Only the targets you specify are scanned.

Strategy templates

Asset changes

Asset Center → Asset Changes (/changes) compares two completed scans in a project: assets added, assets that disappeared, and port or service changes. The Rescan history tab lists changes from scheduled project rescans. Comparison uses stored results only; it does not send new probes.

Asset changes

Exposure monitoring

System Settings → Exposure monitoring turns on an inventory-only evaluator (interval, certificate reminder windows such as 30,14,7, watched ports, and an alert cooldown). Asset Center → Exposure monitoring (/monitoring) shows certificate expiry and critical-port findings. No new public probes are sent. Alerts use the notification channels below.

Exposure monitoring

Notifications and users

System Settings → Notifications enables channels (DingTalk, Feishu, WeCom, generic webhook) and selects events: new port, asset offline, asset back online, title change, task completed, task failed, node offline, new risk found, certificate expiring, and critical port exposed. Each saved channel can be tested. Bodies never include secrets. Leave a secret field blank on save to keep the stored value.

System Settings → Users and permissions creates users with the Administrator, Read-only or Project member role. The existing admin account cannot be locked out or deleted from the UI.

Users and permissions

AI assistant

The built-in AI Assistant page (/assistant, also a compact panel on the home page) turns a sentence such as "run a full scan of example.com and rescan weekly" or "connect Tencent Cloud and provision 2 nodes" into platform actions. The model plans the steps and calls tools through function calling; each call is shown in the chat as a collapsible step with a redacted argument summary and its status. Replies stream, chats are kept per user, and Stop cancels a run.

  • Configure: System Settings → AI Assistant — provider (OpenAI, DeepSeek, Ollama or any OpenAI-compatible endpoint), API Base, API key and a model that supports function calling. The key is encrypted at rest and never shown again. Test connection sends a fixed function-calling probe with no platform data. Without a model, the page explains how to set it up.
  • Same tools and RBAC as MCP: the assistant calls the MCP server's tool registry in-process, as the signed-in user. Read-only accounts only get look-up tools, project members stay in their projects, and the assistant never escalates.
  • Confirmation: billable actions (cloud provisioning, auto-scaling), destructive actions (delete, terminate, disable, batch), user/role/settings changes, and scans on targets the user did not write in the chat show a confirm card and run only after Confirm.
  • Secure secret input: when a step needs a Tencent/AWS key pair, a FOFA/Hunter/Quake key or a notification webhook, the assistant shows a masked input card. The value is written through the existing encrypted settings or cloud-account API and is never sent to the model provider, stored in chat history, logged, or shown again — the model only sees "configured". Secrets pasted into the chat are removed before they reach the model. MCP tokens are issued only in Settings.
  • Audit: System Settings → AI audit (administrators) lists every assistant tool call with user, tool, redacted arguments, gate, decision, result and time.

Scan only assets you own or are authorized to test. The assistant does not provide exploit code or attack instructions.

MCP interface

An official Model Context Protocol endpoint is served at /mcp on the same port as the console (for example http://127.0.0.1:18080/mcp). It uses Streamable HTTP as defined by the MCP specification. Every call requires a personal access token in the Authorization: Bearer header. Tokens are created under System Settings → MCP, shown only once, stored as a hash, and can be revoked at any time.

The token inherits the issuing account's role:

  • Administrator: the same operator actions as the console, including listing, enabling and disabling nodes, dispatching official cloud scanner nodes, creating and controlling scan tasks (including the bundled POC option), listing the vulnerability center, and managing users and settings.
  • Read-only: list and get tools only. Cannot create, update, delete, start scans, provision or terminate nodes, or change settings or users. A read-only user may still issue and revoke their own MCP tokens.
  • Project member: the same scope as the console — only assigned projects and the actions already allowed there.

Tool results never include Tencent or AWS secret keys, NATS tokens or seeds, user passwords, vendor FOFA / Hunter / Quake keys, or raw token values after they have been listed once. Settings tools report whether a secret is configured, not its value. First-run setup still does not overwrite an existing .env.

Example Cursor or Claude Desktop remote config (replace the token with the value shown at creation):

{
  "mcpServers": {
    "nextassets": {
      "url": "http://127.0.0.1:18080/mcp",
      "headers": {
        "Authorization": "Bearer na_mcp_your_token"
      }
    }
  }
}

A stdio helper is built as nextassets-mcp (also nextassets mcp-stdio). Set NEXTASSETS_URL to the platform base URL and NEXTASSETS_MCP_TOKEN to the personal token. The helper only forwards official JSON-RPC messages; it does not bypass RBAC.

Do not point MCP tools at targets you are not authorized to test, and do not use cloud-provision tools unless you intend to create billable instances.

AWS asset source (EC2 / Elastic IP)

The platform can import EC2 instances and Elastic IPs from one or more AWS accounts as assets. It uses the official AWS SDK for Go v2 and only calls the read-only APIs ec2:DescribeInstances, ec2:DescribeAddresses and ec2:DescribeRegions.

  1. Create a dedicated IAM user with only this minimal policy (these Describe actions do not support resource-level permissions, so Resource must be *):
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "NextAssetsReadOnlyEC2",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInstances",
        "ec2:DescribeAddresses",
        "ec2:DescribeRegions"
      ],
      "Resource": "*"
    }
  ]
}
  1. Under System Settings → AWS, add a named account with the Access Key ID, Secret Access Key and the regions to sync (comma-separated, e.g. us-east-1,ap-northeast-1). You can add more than one account and choose which one to test or sync. Both keys are write-only and are stored AES-GCM encrypted when SECRET_KEY is set; only the keys saved on that account are used, never environment variables or ~/.aws on the platform host.
  2. Select the account, click Test connection, optionally pick a project, then Sync now. Running instances and associated Elastic IPs are online; stopped instances and unassociated Elastic IPs are offline. An IP that is also found by a scan is merged into the same asset, tagged aws, ec2/eip and the region.

AWS asset sync

Importing does not scan anything; only scan addresses you own or are authorized to test. API, import rules and tests: docs/aws.md.

Local Development

  • Backend: Go 1.27.4+, go run . (requires a reachable PostgreSQL / Redis / NATS).
  • Frontend: pnpm 12 + Node 22, pnpm install && pnpm dev; the pnpm build output is embedded into the Go binary (dict/) when packaging.

Architecture

The system consists of two major parts: the platform (a single Go backend with an embedded frontend, handling situation aggregation and task dispatch) and the scanner (a distributed probe agent).

image-20250709001409876

  • Platform: web UI, asset management, syntax search, and system settings; all business configuration is stored in the database. Tasks are dispatched to scanner nodes and results collected via NATS (JetStream).
  • Scanner: started in nextassets_scanner agent mode, connects to NATS to receive tasks, with a dual-engine design — the in-house nextassets engine (port scanning / HTTP probing / screenshots / GeoIP / sensitive information and API / JS endpoints) plus the embedded fscan SDK engine (fingerprints / optional weak-credential and bundled POC checks). Both can run in one task; results merge onto the same assets.
  • Node management: scanner nodes are managed centrally in the web UI and can be enabled or disabled without being deleted. A disabled node is not assigned new work (queue, dispatch and auto-scaling skip it); in-flight dispatched or running tasks finish on that node, and pending work is returned to the queue. The same enable/disable actions are available to MCP with the same RBAC. Cloud provisioning and destruction of elastic nodes remains available on selected Tencent Cloud CVM accounts. AWS accounts can be saved for read-only EC2 / Elastic IP import; dispatching AWS scanner nodes is not documented as a finished walkthrough in this revision.
  • Task model: a project → task hierarchy, with assets automatically deduplicated across tasks while keeping their source-task tags.

The scanner runs independently and can be deployed in a distributed fashion across different machines, as long as it can reach the platform's NATS address.

My own scanning setup: three VPS each from providers such as Amazon and Vultr, with nodes in Japan, the United States, Singapore, as well as Hong Kong, China and Taiwan, China. Scan tasks are launched from these nodes and the data is aggregated back to a single server.

Star History

Star History Chart

About

A next-generation AI distributed asset scanning platform that integrates API analysis, sensitive information identification, and automated attack capabilities.

Topics

Resources

Stars

63 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages