Documentation
¶
Overview ¶
Package netcap is a framework for network traffic analysis. Learn more at https://netcap.io.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Commit = "development"
Commit is the git commit id of the current version.
var GopacketVersion = "v1.7.2+v1.1.16-0.20261108103455-f2eeabc1ff6e"
GopacketVersion is the version of gopacket library used.
var Version = "v0.16.0"
Version is the current version identifier for netcap.
Functions ¶
func LicenseNames ¶ added in v0.15.4
func LicenseNames() []string
LicenseNames returns the paths of all license documents embedded in Netcap.
func ReadLicense ¶ added in v0.15.4
ReadLicense returns an embedded license document by its listed path.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
analyze
command
|
|
|
dbs-server
command
|
|
|
enrichment-server
command
|
|
|
firewall
Package firewall supplies the shared CLI for the standalone and net commands.
|
Package firewall supplies the shared CLI for the standalone and net commands. |
|
inject
Package inject provides the inject subcommand for inline packet manipulation.
|
Package inject provides the inject subcommand for inline packet manipulation. |
|
mcp
Package mcp implements the `net mcp` subcommand: a stdio Model Context Protocol server suitable for use by desktop LLM clients (Claude Desktop, Claude Code, mcp-inspector).
|
Package mcp implements the `net mcp` subcommand: a stdio Model Context Protocol server suitable for use by desktop LLM clients (Claude Desktop, Claude Code, mcp-inspector). |
|
net
command
|
|
|
netcap-firewall
command
|
|
|
Package defaults contains default settings for the netcap core.
|
Package defaults contains default settings for the netcap core. |
|
helpers
module
|
|
|
internal
|
|
|
analyst
Package analyst implements finite, explicitly included capture investigations.
|
Package analyst implements finite, explicitly included capture investigations. |
|
apipolicy
Package apipolicy implements positive API validation from pinned local artifacts.
|
Package apipolicy implements positive API validation from pinned local artifacts. |
|
appliance
Package appliance provisions operator-owned named network topologies.
|
Package appliance provisions operator-owned named network topologies. |
|
archive
Package archive provides utilities for working with compressed archives.
|
Package archive provides utilities for working with compressed archives. |
|
behavior
Package behavior maintains scoped, passive observations and approved baselines.
|
Package behavior maintains scoped, passive observations and approved baselines. |
|
behavior/command
Package command supplies the capture and agent behavioral-monitoring flags.
|
Package command supplies the capture and agent behavioral-monitoring flags. |
|
collector
Package collector provides a mechanism to collect network packets from a network interface on macOS, linux and windows
|
Package collector provides a mechanism to collect network packets from a network interface on macOS, linux and windows |
|
cryptoutils
Package cryptoutils provides hashing and random token helpers.
|
Package cryptoutils provides hashing and random token helpers. |
|
decoder/db
Package db holds the vulnerability and exploit database handles used by the stream decoders.
|
Package db holds the vulnerability and exploit database handles used by the stream decoders. |
|
decoder/packet
Package packet Package decoder implements decoders to transform network packets into protocol buffers for various protocols
|
Package packet Package decoder implements decoders to transform network packets into protocol buffers for various protocols |
|
decoder/stream/network
Package network handles network-layer protocol conversations (ICMP, IGMP, GRE, etc.) that don't have a transport layer.
|
Package network handles network-layer protocol conversations (ICMP, IGMP, GRE, etc.) that don't have a transport layer. |
|
decoder/stream/quic
Package quic implements QUIC protocol analysis for both gQUIC and IETF QUIC.
|
Package quic implements QUIC protocol analysis for both gQUIC and IETF QUIC. |
|
delimited
Package delimited implements a simple reader and writer for streams of length-delimited byte records.
|
Package delimited implements a simple reader and writer for streams of length-delimited byte records. |
|
delivery
Package delivery provides opt-in, at-least-once webhook delivery.
|
Package delivery provides opt-in, at-least-once webhook delivery. |
|
devicecatalog
Package devicecatalog reads explicitly selected, offline device catalogues.
|
Package devicecatalog reads explicitly selected, offline device catalogues. |
|
distributed
Package distributed implements netcap's agent → collector transport.
|
Package distributed implements netcap's agent → collector transport. |
|
dnscontext
Package dnscontext snapshots packet-ingress DNS evidence before dispatch.
|
Package dnscontext snapshots packet-ingress DNS evidence before dispatch. |
|
dpi
Package dpi implements an interface for application layer classification via bindings to nDPI and libprotoident
|
Package dpi implements an interface for application layer classification via bindings to nDPI and libprotoident |
|
enforcer
Package enforcer provides opt-in, finite source-address blocks for one immutable network scope.
|
Package enforcer provides opt-in, finite source-address blocks for one immutable network scope. |
|
enrichment
Package enrichment implements an optional, offline-readable channel independent of netcap.sqlite.
|
Package enrichment implements an optional, offline-readable channel independent of netcap.sqlite. |
|
entropy
Package entropy calculates Shannon entropy over byte distributions.
|
Package entropy calculates Shannon entropy over byte distributions. |
|
env
Package env contains static environment variable names that netcap uses.
|
Package env contains static environment variable names that netcap uses. |
|
evidencelink
Package evidencelink links audit records across protocols: records of one connection (Community ID within the connection's time span), the DNS answer that resolved a connection's destination, connections opened to resolved addresses, and alerts raised on any of them.
|
Package evidencelink links audit records across protocols: records of one connection (Community ID within the connection's time span), the DNS answer that resolved a connection's destination, connections opened to resolved addresses, and alerts raised on any of them. |
|
firewall
Package firewall provides iptables integration for automated response actions.
|
Package firewall provides iptables integration for automated response actions. |
|
firewallaudit
Package firewallaudit projects decoder records into retrospective policy events.
|
Package firewallaudit projects decoder records into retrospective policy events. |
|
firewallauth
Package firewallauth provides bootstrap-bound identities shared by firewall APIs.
|
Package firewallauth provides bootstrap-bound identities shared by firewall APIs. |
|
firewallfleet
Package firewallfleet distributes immutable policy revisions to explicitly enrolled targets.
|
Package firewallfleet distributes immutable policy revisions to explicitly enrolled targets. |
|
firewallstate
Package firewallstate provides authoritative, scoped shared counters.
|
Package firewallstate provides authoritative, scoped shared counters. |
|
firewalltransport
Package firewalltransport gates complete messages before releasing their wire headers.
|
Package firewalltransport gates complete messages before releasing their wire headers. |
|
firewallui
Package firewallui serves the standalone, embedded administrative console.
|
Package firewallui serves the standalone, embedded administrative console. |
|
gateway
Package gateway implements bounded explicit application gateways.
|
Package gateway implements bounded explicit application gateways. |
|
helpers
Package helpers provides utilities for testing Netcap components
|
Package helpers provides utilities for testing Netcap components |
|
hsmatch
Package hsmatch is a thin, build-tag gated wrapper around the gohs (Hyperscan / Vectorscan) library.
|
Package hsmatch is a thin, build-tag gated wrapper around the gohs (Hyperscan / Vectorscan) library. |
|
httputil
Package httputil provides small HTTP-related helpers used across Netcap.
|
Package httputil provides small HTTP-related helpers used across Netcap. |
|
injection
Package injection provides packet manipulation and injection capabilities for offensive security testing and network research.
|
Package injection provides packet manipulation and injection capabilities for offensive security testing and network research. |
|
ja4
Package ja4 implements BSD-3-Clause-licensed JA4 TLS client fingerprinting.
|
Package ja4 implements BSD-3-Clause-licensed JA4 TLS client fingerprinting. |
|
label
Package label implements mapping alerts from suricata to netcap audit records
|
Package label implements mapping alerts from suricata to netcap audit records |
|
magika
Package magika provides AI-based file type classification using the Google Magika Rust CLI.
|
Package magika provides AI-based file type classification using the Google Magika Rust CLI. |
|
mcp
Package mcp implements a Model Context Protocol server that exposes netcap's analytical capabilities as tools, resources, and prompts.
|
Package mcp implements a Model Context Protocol server that exposes netcap's analytical capabilities as tools, resources, and prompts. |
|
metrics
Package metrics provides primitives for instrumentation via prometheus
|
Package metrics provides primitives for instrumentation via prometheus |
|
netio
Package io implements IO primitives
|
Package io implements IO primitives |
|
networkfirewall
Package networkfirewall implements a routed, verdict-producing packet firewall.
|
Package networkfirewall implements a routed, verdict-producing packet firewall. |
|
packetview
Package packetview supplies bounded, scope-preserving inner datagram views.
|
Package packetview supplies bounded, scope-preserving inner datagram views. |
|
packetview/testutil
Package testutil builds deterministic, fictional packet-pipeline fixtures.
|
Package testutil builds deterministic, fictional packet-pipeline fixtures. |
|
policy
Package policy compiles bounded application policies independently of alerts.
|
Package policy compiles bounded application policies independently of alerts. |
|
policycontrol
Package policycontrol manages one in-process policy attachment.
|
Package policycontrol manages one in-process policy attachment. |
|
policystate
Package policystate evaluates native policies in an authoritative transaction.
|
Package policystate evaluates native policies in an authoritative transaction. |
|
reassembly
Package reassembly provides TCP stream re-assembly.
|
Package reassembly provides TCP stream re-assembly. |
|
resolvers
Package resolvers implements primitives to resolve various identifiers against external data
|
Package resolvers implements primitives to resolve various identifiers against external data |
|
responseactions
Package responseactions dispatches admitted policy intents to operator-configured enforcers.
|
Package responseactions dispatches admitted policy intents to operator-configured enforcers. |
|
runtimeobs
Package runtimeobs owns per-instance Prometheus registries.
|
Package runtimeobs owns per-instance Prometheus registries. |
|
servicesignatures
Package servicesignatures identifies passive service greetings using bounded protocol parsers.
|
Package servicesignatures identifies passive service greetings using bounded protocol parsers. |
|
table
Package table provides simple ASCII table rendering for terminal output.
|
Package table provides simple ASCII table rendering for terminal output. |
|
tools/audit-semantics
command
Command audit-semantics exports owned cross-language wire/export fixtures.
|
Command audit-semantics exports owned cross-language wire/export fixtures. |
|
tools/licenses
command
Command licenses generates and verifies the third-party license bundle shipped with netcap.
|
Command licenses generates and verifies the third-party license bundle shipped with netcap. |
|
transparentfirewall
Package transparentfirewall places explicitly configured TCP message gateways on a routed service path.
|
Package transparentfirewall places explicitly configured TCP message gateways on a routed service path. |
|
vulndb
Package vulndb reads and writes netcap.sqlite, the vulnerability and exploit database shared by the Go and Rust implementations.
|
Package vulndb reads and writes netcap.sqlite, the vulnerability and exploit database shared by the Go and Rust implementations. |
|
waf
Package waf implements a bounded HTTP reverse-proxy inspection boundary.
|
Package waf implements a bounded HTTP reverse-proxy inspection boundary. |
|
webtech
Package webtech recognizes advertised, transaction-scoped web technology.
|
Package webtech recognizes advertised, transaction-scoped web technology. |
|
webtech/cmd/prepare
command
|
|
|
webtech/cmd/qualify
command
|
|
|
webtech/publication
Package publication prepares the two optional catalogues and their scoped source evidence.
|
Package publication prepares the two optional catalogues and their scoped source evidence. |
|
webtech/testfixture
Package testfixture creates synthetic signing material, never a production grant.
|
Package testfixture creates synthetic signing material, never a production grant. |
|
Package types Contains the type definitions for the supported network protocols
|
Package types Contains the type definitions for the supported network protocols |