Published October 21, 2026 | Version 1.0

Data and code for: A Two-Layer Intrusion Detection System for Denial-of-Service and Spoofing Attacks That Persist on CoAP After DTLS and OSCORE

  • 1. School of Computer Science and Engineering, Vellore Institute of Technology, Chennai, India

Description

Code and data for the article A Two-Layer Intrusion Detection System for Denial-of-Service and Spoofing Attacks That Persist on CoAP After DTLS and OSCORE (School of Computer Science and Engineering, Vellore Institute of Technology, Chennai).

DTLS and OSCORE protect what a CoAP message says, not whether the server can keep answering. The intrusion detection system released here splits detection across the cryptographic boundary. Layer 1 reads raw frames before decryption, watches ARP bindings and per-(IP, MAC) datagram rates, and installs expiring host-firewall drops keyed on the (IP, MAC) pair. Layer 2 runs inside a libcoap 4.3.5 server after decryption, counts each client's requests against a limit learned from benign traffic (with an optional pooled per-client mode), answers abuse with 4.29 Too Many Requests or 4.13 Request Entity Too Large, and reports authenticated verdicts to Layer 1.

The record holds all 1566 measured runs under DTLS (pre-shared key) and OSCORE on a namespace testbed, with the server and Layer 1 sharing one processor core and, where stated, one CPU quota. Main findings:

  • With one honest client, the adaptive Layer 2 caught a 50 req/s low-rate flood and a 512-byte oversized-payload attack in every run under both transports; a fixed global threshold of 100 req/s caught neither.
  • With 1 to 20 honest clients, a per-client limit learned from aggregate traffic lost the low-rate flood from ten clients on, while the pooled per-client limit detected it in every run with no false alarm in the benign runs. Replaying about 3.8 client-hours of benign traffic gave the pooled limit about 1.1 single-window refusals per client-hour (exact Poisson 95% interval 0.29 to 2.69).
  • On a server held to 20% of one core, floods left an honest client with 3% to 20% of its intended requests answered; dropping the flood before decryption (Layer 1) restored 89% or more.
  • Under OSCORE, an insider flood from an open-loop client never reached the request handler: libcoap answered each request with a protected 4.01 carrying a fresh Echo value (RFC 8613, Appendix B.1.2), so only Layer 1 saw the flood. A two-second packet capture of this case is included.
  • Keying the firewall drop on (IP, MAC) kept 91.5% of an honest client's goodput under a flood that forged its address; an IP-only drop cut it to 0.4%.

Files. runs.jsonl: one JSON record per run (the authoritative results), described field by field in DATA_DICTIONARY.csv. coap_ids_code_v1.0.zip: C sources of the server, both detection layers, the load, flood, ARP-poisoning and trace-replay tools, the attacker-side libcoap open-loop OSCORE patch, OSCORE test contexts, testbed setup, the measurement harness, and the analysis and figure scripts (MIT licence). campaign_results_v1.0.zip: runs.jsonl, the detector microbenchmark, the benign replay traces, the sensitivity grid, the OSCORE packet capture and the raw per-run logs. README.md maps every table and figure of the article to its experiment and gives build and reproduction steps.

Notes

libcoap 4.3.5 and GnuTLS are not redistributed; patches/libcoap-4.3.5-oscore-open-loop.patch applies to libcoap 4.3.5 and is used only by the attack tool. The harness deleted raw per-run logs larger than 2 MB after writing each run record, so runs.jsonl is authoritative. All keys and OSCORE contexts in the archive are test credentials.

Files

campaign_results_v1.0.zip

Files (32.6 MB)

Name Size
md5:3cd77256f2c26ab5a74b1de3254d7201
30.7 MB Preview Download
md5:51d912bb2a701aa0aa4f97047184f860
804 Bytes Download
md5:3f252e38dcc96cd16afef1954c67fae8
69.6 kB Preview Download
md5:0e4474b6ba05f8af3495392d642b3112
5.8 kB Preview Download
md5:86005086a5cffb8e9a24efa5939ce0fe
7.3 kB Preview Download
md5:7f94a5692f0856566dc4c2738a28c6a8
1.9 MB Download

Additional details

Related works

References
Standard: 10.17487/RFC7252 (DOI)
Standard: 10.17487/RFC8613 (DOI)
Standard: 10.17487/RFC9175 (DOI)
Standard: 10.17487/RFC8516 (DOI)
Requires
Software: https://libcoap.net (URL)