Linux namespaces and seccomp-bpf sandbox
This report presents the forensic synthetic code analysis of netblue30/firejail, a C project with 7,529 GitHub stars. SynthScan v2.0 examined 73,648 lines of code across 273 source files, recording 262 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 4.5 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 262 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gcov.sh | 1 | #!/bin/bash | COMMENT |
| LOW | .gitlab-ci.yml | 101 | - make installcheck | COMMENT |
| LOW | mkgcov.sh | 1 | #!/bin/bash | COMMENT |
| LOW | linecnt.sh | 1 | # This script counts the number of lines of code throughout the | COMMENT |
| LOW | linecnt.sh | 21 | # fcopy 299 | COMMENT |
| LOW | test/seccomp-extra/memwrexe.c | 1 | // This file is part of Firejail project | COMMENT |
| LOW | test/filters/namespaces.c | 1 | #define _GNU_SOURCE | COMMENT |
| LOW | test/firecfg/firecfg.sh | 21 | #sudo firecfg | COMMENT |
| LOW | test/fnettrace/fnettrace.sh | 41 | sleep 1 | COMMENT |
| LOW | test/compile/compile.sh | 1 | #!/bin/bash | COMMENT |
| LOW | platform/rpm/mkrpm.sh | 1 | #!/bin/bash | COMMENT |
| LOW | contrib/gdb-firejail.sh | 1 | #!/bin/bash | COMMENT |
| LOW | src/libtrace/libtrace.c | 21 | #include <errno.h> | COMMENT |
| LOW | src/libtrace/libtrace.c | 141 | #ifdef SOCK_DCCP | COMMENT |
| LOW | src/libtrace/libtrace.c | 161 | { AF_IPX, "AF_IPX" }, | COMMENT |
| LOW | src/libtrace/libtrace.c | 181 | static XTable socket_protocol[] = { | COMMENT |
| LOW | src/libtrace/libtrace.c | 201 | { IPPROTO_PUP, "IPPROTO_PUP" }, | COMMENT |
| LOW | src/libtrace/libtrace.c | 221 | #ifdef IPPROTO_ESP | COMMENT |
| LOW | src/libtrace/libtrace.c | 441 | int stat(const char *pathname, struct stat *statbuf) { | COMMENT |
| LOW | src/jailcheck/network.c | 21 | #include <netdb.h> | COMMENT |
| LOW | src/jailcheck/utils.c | 61 | exit(1); | COMMENT |
| LOW | src/tools/gen-syscalls.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | src/tools/extract_seccomp.c | 21 | #define _GNU_SOURCE | COMMENT |
| LOW | src/firemon/firemon.h | 21 | #define FIREMON_H | COMMENT |
| LOW | src/firemon/procevent.c | 21 | #include "../include/gcov_wrapper.h" | COMMENT |
| LOW | src/firecfg/firecfg.h | 21 | #define FIRECFG_H | COMMENT |
| LOW | src/firecfg/firejail-welcome.sh | 1 | #!/bin/bash | COMMENT |
| LOW | src/firecfg/firejail-welcome.sh | 201 | #****************************************************** | COMMENT |
| LOW | src/fnettrace/static-ip-map.txt | 1 | # | COMMENT |
| LOW | src/fnettrace/static-ip-map.txt | 21 | # Static Internet Map | COMMENT |
| LOW | src/fnettrace/fnettrace.h | 21 | #define FNETTRACE_H | COMMENT |
| LOW | src/fnettrace/main.c | 21 | #include "radix.h" | COMMENT |
| LOW | src/include/libnetlink.h | 21 | #define _GNU_SOURCE | COMMENT |
| LOW | src/include/libnetlink.h | 141 | ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) | COMMENT |
| LOW | src/include/ldd_utils.h | 21 | #ifndef LDD_UTILS_H | COMMENT |
| LOW | src/include/fnettrace_common.h | 21 | #define FNETTRACE_COMMON_H | COMMENT |
| LOW | src/include/gcov_wrapper.h | 41 | #define __gcov_dump() ((void)0) | COMMENT |
| LOW | src/include/common.h | 21 | #ifndef COMMON_H | COMMENT |
| LOW | src/include/rundefs.h | 21 | #ifndef RUNDEFS_H | COMMENT |
| LOW | src/include/rundefs.h | 41 | #define RUN_PROTOCOL_CFG RUN_MNT_DIR "/protocol" | COMMENT |
| LOW | src/include/rundefs.h | 61 | #define RUN_DBUS_SYSTEM_SOCKET RUN_DBUS_DIR "/system" | COMMENT |
| LOW | src/include/rundefs.h | 81 | #define PATH_SECCOMP_NAMESPACES LIBDIR "/firejail/seccomp.namespaces" // filter for restrict-namespaces | COMMENT |
| LOW | src/include/rundefs.h | 101 | #define RUN_UMASK_FILE RUN_MNT_DIR "/umask" | COMMENT |
| LOW | src/include/seccomp.h | 61 | #define SECCOMP_H | COMMENT |
| LOW | src/include/seccomp.h | 81 | #endif | COMMENT |
| LOW | src/include/seccomp.h | 101 | #define SECCOMP_RET_LOG 0x7ffc0000U | COMMENT |
| LOW | src/include/seccomp.h | 121 | #elif defined(__mips__) && __BYTE_ORDER == __BIG_ENDIAN && _MIPS_SIM == _MIPS_SIM_ABI32 | COMMENT |
| LOW | src/include/seccomp.h | 141 | #elif defined(__mips__) && __BYTE_ORDER == __LITTLE_ENDIAN && _MIPS_SIM == _MIPS_SIM_NABI32 | COMMENT |
| LOW | src/include/seccomp.h | 161 | #elif defined(__s390__) | COMMENT |
| LOW | src/include/seccomp.h | 181 | #elif defined(__sparc64__) | COMMENT |
| LOW | src/fcopy/main.c | 21 | #include "../include/common.h" | COMMENT |
| LOW | src/fnetlock/fnetlock.h | 21 | #define FNETLOCK_H | COMMENT |
| LOW | src/fbwrap/main.c | 21 | #include <stdio.h> | COMMENT |
| LOW | src/fseccomp/namespaces.c | 21 | #include "fseccomp.h" | COMMENT |
| LOW | src/fseccomp/namespaces.c | 101 | #ifdef SYS_clone | COMMENT |
| LOW | src/fseccomp/namespaces.c | 181 | #endif | COMMENT |
| LOW | src/fseccomp/seccomp.c | 21 | #include "../include/seccomp.h" | COMMENT |
| LOW | src/fseccomp/seccomp.c | 201 | COMMENT | |
| LOW | src/fseccomp/seccomp.c | 221 | #elif defined(__arm__) | COMMENT |
| LOW | src/lib/common.c | 21 | #include <stdio.h> | COMMENT |
| 137 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | mkdeb.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | gcov.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | mkuid.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | mkgcov.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | mkasc.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/seccomp-extra/seccomp-extra.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/filters/filters.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/capabilities/capabilities.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/firecfg/firejail-program-args.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/firecfg/firecfg.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/fnettrace/fnettrace.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/network/network.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/private-etc/private-etc.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/apparmor/apparmor.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/fcopy/fcopy.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/utils/utils.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/utils/catchsignal.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/utils/catchsignal-master.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/utils/catchsignal2.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/fnetfilter/fnetfilter.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/compile/compile.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/private-lib/private-lib.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/environment/environment.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/environment/output.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/appimage/appimage.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/chroot/chroot.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/profiles/profiles.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/profiles/all-profiles.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/fs/fs.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | test/apps/apps.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | ci/check/profiles/sort.py | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | platform/rpm/mkrpm.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | platform/rpm/mkrpm.sh | 41 | # Create the spec file | COMMENT |
| MEDIUM | contrib/fj-mkdeb.py | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/fj-mkdeb.py | 30 | # Create the dist file used by mkdeb.sh. | COMMENT |
| MEDIUM | contrib/syscalls.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/sort.py | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/jail_prober.py | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/update_deb.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/fjresize.py | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/fjclip.py | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/fjdisplay.py | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | contrib/gdb-firejail.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | src/man/mkman.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | src/tools/gen-syscalls.sh | 3 | # This file is part of Firejail project | COMMENT |
| MEDIUM | src/tools/check-caps.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | src/tools/extract_errnos.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | src/tools/unchroot.pl | 14 | # Create a subdir, move into it | COMMENT |
| MEDIUM | src/firecfg/firejail-welcome.sh | 3 | # This file is part of Firejail project | COMMENT |
| MEDIUM | src/firecfg/firejail-symlink.sh | 2 | # This file is part of Firejail project | COMMENT |
| MEDIUM | src/fnettrace/main.c | 839 | printf("# This file is part of firejail project\n"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ci/check/profiles/sort.py | 77 | CODE | |
| LOW | ci/check/profiles/sort.py | 126 | CODE | |
| LOW | contrib/sort.py | 77 | CODE | |
| LOW | contrib/sort.py | 126 | CODE | |
| LOW | contrib/fix_private-bin.py | 38 | CODE | |
| LOW | contrib/fix_private-bin.py | 72 | CODE | |
| LOW | contrib/fix_private-bin.py | 103 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/lib/libnetlink.c | 384 | /* Don't forget to skip that message. */ | COMMENT |
| MEDIUM | src/fbuilder/build_profile.c | 95 | fprintf(fp, "# some other commands you can try. Enable them by removing the \"#\".\n\n"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | linecnt.sh | 18 | # ------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ci/check/profiles/sort.py | 166 | except Exception as err: | STRING |
| MEDIUM | contrib/fj-mkdeb.py | 16 | print('Error: Not a firejail source tree? Exiting.') | CODE |
| LOW | contrib/sort.py | 166 | except Exception as err: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/tools/unchroot.pl | 11 | # Open filehandle to root of jail | COMMENT |