Guide 046 min readFrameAssembly v3.1.2
llms-full.txt

Encrypted SNMPv3 Traps, Syslog & NetFlow From Your Desk

Test Zabbix, PRTG, LibreNMS, or Splunk alert rules on demand with MIB-free SNMPv1/v2c/v3 authPriv traps, Syslog events, and NetFlow/IPFIX/sFlow records.

TL;DR — What Matters Here
  • Zero MIB files needed — type numeric OIDs directly and let FrameAssembly encode the ASN.1 BER tree.
  • snmp3 runs real RFC 3414 / 3826 / 7860 key localization, HMAC digests, and AES-128-CFB encryption so Wireshark and snmptrapd decrypt every varbind.
  • Drop SNMP traps + Syslog + TACACS+ + NetFlow/IPFIX/sFlow into one .frasm timeline to test SIEM correlation rules.

1. SNMPv2c & Encrypted SNMPv3 (authPriv) Without Net-SNMP Pain

"Wait until a core PSU actually catches fire" is a terrible way to find out your Zabbix trap receiver had the wrong EngineID configured. And fighting snmptrap flags plus broken vendor MIB imports on your laptop isn’t much better.

FrameAssembly emits snmp1, snmp2, and USM-encrypted snmp3 datagrams straight from numeric OIDs using repeatable varbind <oid> <type> <val> clauses (string, int, oidval, ipval, counter32, gauge32, timeticks, counter64, opaque, null).

snmpv3_linkdown_trap.frasm11 lines
Open in Playground
// SNMPv2c + encrypted SNMPv3 authPriv linkDown traps -> UDP 162
host core_sw { ip 10.50.0.1 }
host nms_srv { ip 10.50.0.100 }
compile {
// 1. SNMPv2c linkDown (snmpTrapOID.0 -> 1.3.6.1.6.3.1.1.5.3)
core_sw -> nms_srv snmp2 trap community "noc-ro" sysuptime 452000 varbind 1.3.6.1.6.3.1.1.4.1.0 oidval 1.3.6.1.6.3.1.1.5.3 varbind 1.3.6.1.2.1.2.2.1.2.1 string "TenGigE0/1/0" wait 5ms
// 2. Encrypted SNMPv3 USM authPriv (HMAC-SHA256 + AES-128) trap
core_sw -> nms_srv snmp3 trap user "nms-secops" engineid "80001f888011223344" engineboots 7 enginetime 9410 auth sha256 "AuthSecret2026!" priv aes "PrivSecret2026!" sysuptime 452005 varbind 1.3.6.1.6.3.1.1.4.1.0 oidval 1.3.6.1.6.3.1.1.5.3 varbind 1.3.6.1.2.1.2.2.1.2.1 string "TenGigE0/1/0"
}
Decrypting snmp3 in Wireshark

In Wireshark (Preferences -> Protocols -> SNMP -> Users Table), plug in Engine ID 80001f888011223344, user nms-secops, SHA-256 (AuthSecret2026!), and AES (PrivSecret2026!) to decrypt the ScopedPDU.

2. Stitch Traps + Syslog + TACACS+ Into One Timeline

Want to test a SIEM rule that correlates an admin tacacs login on TCP 49 with a BGP neighbor syslog drop 4 milliseconds later? Put both in the same compile block:

noc_siem_correlation.frasm12 lines
Open in Playground
host edge_rtr { ip 10.60.1.1 }
host siem_col { ip 10.60.10.50 }
host tacacs_sv { ip 10.60.10.49 }
compile {
// Admin TACACS+ login on TCP 49 -> Critical BGP Syslog alert 4ms later
edge_rtr -> tacacs_sv tcp syn srcport 51400 dstport 49 win 65535 mss 1460 wait 1ms
edge_rtr <- tacacs_sv tcp syn ack win 65535 mss 1460 wait 1ms
edge_rtr -> tacacs_sv tcp ack wait 1ms
edge_rtr -> tacacs_sv tacacs authen sessionid 0x9001ab user "netadmin" data "tty0" wait 4ms
edge_rtr -> siem_col syslog facility 16 severity 2 hostname "edge-rtr-01" app "BGP" msgid "ADJCHANGE" msg "Neighbor 198.51.100.1 Down: Hold Timer Expired"
}

3. Synthetic Top-Talkers: NetFlow v5, IPFIX & sFlow

Feed ElastiFlow, Akvorado, pmacct, or ntopng deterministic flow spikes using netflow (UDP 2055), ipfix (UDP 4739, auto-bundling Template Set + Data Set so Wireshark decodes it immediately), and sflow (UDP 6343):

flow_collector_test.frasm8 lines
Open in Playground
host core_exporter { ip 172.20.0.1 }
host flow_ingest { ip 172.20.0.205 }
compile {
core_exporter -> flow_ingest netflow srcip 10.10.5.25 dstip 198.51.100.80 srcport 52400 dstport 443 proto 6 packets 1250 octets 1680000 wait 5ms
core_exporter -> flow_ingest ipfix domainid 100 srcip 2001:db8:5::25 dstip 2001:db8:99::80 srcport 52401 dstport 443 proto 6 packets 840 octets 1120000 wait 5ms
core_exporter -> flow_ingest sflow agentip 172.20.0.1 subagentid 1 seq 42 uptime 360000 samples 1
}