github.com / takehaya
takehaya/ xdperf
Go·448 files·commit 25d4a2a·scanned 6d ago·cached ✓
70/100
DANGEROUS
High-risk patterns found. Review the flagged code and its context before running it.
scored by engine v10: rules have changed since, rescan for the current result
verdict accurate?
threat-state: dangerouslive
FINDINGS ░▒▓
criticalGo os/exec usageos/exec is used to run external commands. In malware it drops payloads, modifies the system, or opens shells.cmd/packetdefs-gen/main.go
func command(clang string, args ...string) ([]byte, error) {
out, err := exec.Command(clang, args...).CombinedOutput()
if err != nil {
return nil, fmt.Errorf("%s %s: %w\n%s", clang, strings.Join(a...+8criticalGo os/exec usageos/exec is used to run external commands. In malware it drops payloads, modifies the system, or opens shells.cmd/packetdefs-gen/main_test.go
}
cmd := exec.Command("go", "test")
cmd.Dir = filepath.Join(dir, "generated")
cmd.Env = append(os.Environ(), "GO111MODULE=off")+8criticalGo os/exec usageos/exec is used to run external commands. In malware it drops payloads, modifies the system, or opens shells.cmd/xdperf-sink/netkit_test.go
if err := exec.Command("ip", "link", "add", nkname, "type", "netkit", "mode", "l3", "peer", nkpeer).Run(); err != nil {
t.Skipf("netkit not available: %v", err)
}+8warningPython subprocess / os.system usageos.system() or subprocess with shell=True / suspicious commands can execute arbitrary shell commands. Plain pip/package installs are usually benign.examples/common/py/test_runner.py
def run_scenario(self):
result = subprocess.run(['bash', str(self.root / 'run_all.sh')],
capture_output=True, text=True, timeout=10)
steps = self.ro...+4warningGo unsafe package usageunsafe package bypasses Go's type safety. Malware uses it for memory tricks, pointer casts, and hiding behavior.pkg/guest/api.go
"runtime" "unsafe" )+3
warningGo unsafe package usageunsafe package bypasses Go's type safety. Malware uses it for memory tricks, pointer casts, and hiding behavior.pkg/guest/goshim/mem.go
"encoding/binary" "unsafe" )+3
warningGo unsafe package usageunsafe package bypasses Go's type safety. Malware uses it for memory tricks, pointer casts, and hiding behavior.pkg/guest/memutils.go
"fmt" "unsafe" "github.com/mcuadros/go-defaults"+3
Scores reflect the files and rules covered by this scan. How to read this report
243 files scanned @ 25d4a2a | 11/18/2026 | heuristic scan — always review manually
risk by category
code execution25
network & exfiltration0
file system access0
obfuscation0
supply chain2
owasp / injection0
telemetry
files 243/448rules hit 9engine v10commit 25d4a2a
github
takehaya/xdperf
xdperf is a high-performance network traffic generation tool that leverages XDP (eXpress Data Path).
81
3
410d
448 files
243 scanned(54%)
25d4a2a
network indicators░▒▓
Hosts this code names or would connect to. 12 found, decoded and call-site destinations first. Informational, not scored.
- https://github.com/tinygo-org/tinygo/releases/download/v0.39.0/tinygo_0.39.0_amd64.deburlnext to network callscripts/install_build_tools.sh:9
- https://github.com/bufbuild/buf/releases/latest/download/buf-$(unameurlnext to network callscripts/install_lint_tools.sh:40
- https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gzurlnext to network callscripts/install_lint_tools.sh:49
- https://api.github.com/repos/$REPO/releases/latesturlscripts/install_xdperf.sh:22
- https://api.github.com/repos/$REPO/releases/tags/$VERSIONurlscripts/install_xdperf.sh:24
- https://cloud-images.ubuntu.com/noble/current/….imgurlscripts/vmlab/vmlab.sh:37
- xdperf.mixed.rxdomainpkg/xdperf/metrics.go:164 +1 more
- arp.opdomainplugins/test_e2e_variety.go/packets/arp.go:71
- ip6.tcdomainplugins/test_e2e_variety.go/packets/ipv6_udp.go:69
- https://fedepaol.github.io/blog/2023/09/11/xdp-ate-my-packets-and-how-i-debugged-iturlcomment onlyexamples/simpleudp-echo/test.sh:7 +1 more
- https://github.com/kubernetes-sigs/kube-scheduler-wasm-extensionurlcomment onlypkg/guest/goshim/mem.go:17
- https://github.com/cisco-system-traffic-generator/trex-core/blob/master/scripts/stl/imix.pyurlcomment onlyplugins/imixudp.go/main.go:93
architecture░▒▓
entry (0) flagged (9) pkg (98)
262 nodes · 629 edgesscroll to zoom · click node to jump to finding