Does This File Run Code? Hostile Artifact Checker
Files that come from a target, a dumped repository or an unknown bucket can be code in disguise: a pickle that calls a shell while it loads, a git config that makes git status start a program, an AWS profile whose credential_process runs on the next SDK call, a kubeconfig exec plugin, an SSH ProxyCommand, a package whose build backend runs on pip install. Drop or paste the file and see, without running anything, whether opening, loading, importing, installing or using it runs code, and which line, byte or key does it.
Nothing you drop here leaves your browser; we never execute it. For pentesters, AI pentest agent builders, model-intake reviewers and incident responders.
Drop files
Pickles, .pyc, git / SSH / AWS / kube configs, pyproject.toml, setup.py, requirements, .pth, wheels, zips, tarballs, binaries.
Up to 10 files, 20 MB each. A dropped file only carries its name, so for a dumped repository name it like .git/config or paste it below with the type set.
Loading…
Sample report · illustrative data
Sample result: three files from an untrusted server
Three made-up files collected from a target: a dumped .git/config, an AWS config and a pickled session (session.pkl).
Verdicts
- .git/config
- Runs code when: git status, git checkout, git add, git diff
- .aws/config
- Runs code when: aws CLI or SDK credential lookup
- session.pkl
- Runs code when: pickle.load / pickle.loads (also joblib.load, torch.load without weights_only)
Findings, most urgent first
| File | Severity | Where | What |
|---|---|---|---|
| session.pkl | Runs code | byte 0x2 (2) | Imports os.system and calls it while loading (REDUCE) with the argument "id". |
| .git/config | Runs code | line 5 | core.fsmonitor = ./.git/fsmon.sh: git runs this program. |
| .git/config | Runs code | line 10 | filter.lfs.smudge = ./tools/smudge.sh %f: a filter program git runs on file contents. |
| .aws/config | Runs code | line 6 | [profile deploy] credential_process = /opt/app/bin/get-creds --profile deploy: the AWS CLI and SDKs run this program. |
| .git/config | Risky | line 12 | include.path = ../shared.gitconfig: git reads another config file, which can set any of these keys. |
| .aws/config | Note | line 9 | [profile sso] sso_start_url: single sign-on settings. |
What to do
- Do not load session.pkl; keep it only as evidence and ask for a JSON session store.
- Do not run git in the dumped repository on a host that matters; read the objects without checking out, or override with git -c core.fsmonitor= .
- Run the AWS CLI with a config you wrote (AWS_CONFIG_FILE), never the target's.
Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.
TL;DRWhat this checker does
5 points
- Drop or paste a file that came from a server, repository or bucket you do not control and see whether opening, loading, importing, installing or using it can run code, and which line, byte or key does it.
- Python pickles (protocols 0-5, gzip or zlib wrapped, nested and base64 pickles, joblib): every import and call the pickle would make while loading, read from the opcodes, never unpickled.
- .pyc files (Python version, timestamp or PEP 552 hash mode, sitecustomize and standard-library shadowing), git configs (fsmonitor, sshCommand, hooksPath, filters, credential helpers, includes, insteadOf), SSH configs, AWS credential_process, kubeconfig exec plugins, pyproject.toml / setup.py / requirements, .pth files, wheels, zips, PyTorch checkpoints, tarballs and native binaries.
- Each finding says what triggers it (pickle.load, git status, an AWS SDK call, kubectl, ssh, pip install, python import) and how to avoid it.
- Runs entirely in your browser: nothing is uploaded and nothing is executed.
What this checks
| File type | What runs it | What we look for |
|---|---|---|
| Python pickle (.pkl, .pickle, joblib, session stores, task results) | pickle.load, joblib.load, torch.load without weights_only, pandas.read_pickle | GLOBAL / STACK_GLOBAL imports, REDUCE / NEWOBJ / OBJ / INST / BUILD calls, names hidden from view, nested and base64 pickles, pickles after the first one |
| Compiled Python (.pyc) | python import | Python version, timestamp or PEP 552 hash mode, sitecustomize / usercustomize, names that shadow the standard library |
| git config (.git/config, .gitconfig) and hooks | git status, checkout, diff, fetch, commit | core.fsmonitor, sshCommand, hooksPath, editor, pager, askPass, filters, diff and merge drivers, credential helpers, include paths, insteadOf, protocol allow, core.worktree |
| SSH client config | ssh, scp, rsync, git over SSH | ProxyCommand, LocalCommand, KnownHostsCommand, Match exec, PKCS11Provider, Include, ProxyJump, ForwardAgent |
| AWS config / credentials | aws CLI and SDK credential lookup | credential_process, endpoint_url, ca_bundle, SSO settings, static keys |
| kubeconfig | kubectl and Kubernetes client libraries | exec credential plugins (command and args), proxy-url, auth-provider |
| pyproject.toml, setup.py, setup.cfg, requirements | pip install, pip wheel, python -m build | in-tree build backends (backend-path), unfamiliar backends, setup.py, cmdclass, extra index URLs, git and URL installs |
| .pth files | Python start-up | lines that start with import |
| Wheels, zips, PyTorch checkpoints, tarballs | pip install, torch.load, extraction | entries above inside the archive, native libraries, paths that escape the folder |
| ELF, PE, Mach-O, WebAssembly | running or loading it | native code: treated as executable |
Why this matters now
In “ArtexPot: the honeypots that hack Artex back” (28 November 2026), NebuSec describes targets that serve files built to take over the AI pentest agent that collects them. NebuSec reports that agents such as ARTEX 0.3.15 had their own containers taken over by a .git/config processed during a git-dumper checkout, Python pickles (session stores, Celery results, joblib models), poisoned checked-hash .pyc files, AWS credential_process helpers, kubeconfig exec plugins, SSH ProxyCommand and a private SDK whose PEP 517 build backend runs on pip install. NebuSec reports that 33 of 36 runs across two models reached root, the fastest in 27 seconds.
NebuSec also says it reported a bypass in git-dumper's config sanitising to the maintainer on 28 November 2026, without public details. The general lesson stands on its own: tools that “sanitise” a git config can have gaps, so do not rely on them. Never run git commands inside a dumped repository on a machine you care about; set GIT_CONFIG_NOSYSTEM=1, override risky keys with git -c core.fsmonitor= -c core.hooksPath=/dev/null ..., or better, read the objects without checking anything out.
Background: ARTEX and agentic offensive frameworks and the AI hacking frameworks hub.
Safe handling rules (PlayCISO advice)
- Analyse untrusted artifacts in a disposable sandbox with no secrets, no cloud or kube credentials and no network egress.
- Never
pickle.load,joblib.loadortorch.load(withoutweights_only=True) data you did not create. - Never
pip installa package or requirements file taken from a target. - Never run git in a dumped repository on a host that matters.
- Delete
__pycache__folders from untrusted trees and run Python with-B/PYTHONDONTWRITEBYTECODE=1,PYTHONNOUSERSITE=1, and-Iwhere you can. - Run the AWS CLI, kubectl and ssh with configs you wrote (
AWS_CONFIG_FILE,KUBECONFIG,ssh -F), never the target's.
Nothing you drop here leaves your browser; we never execute it.
Frequently asked questions
Can a file run code just by being opened?
Some formats are code in disguise. A Python pickle can import and call any function while it loads, a .pyc file is bytecode that runs on import, and configuration files for git, SSH, the AWS CLI and kubectl can name programs those tools start on their own: git runs core.fsmonitor on git status, the AWS SDK runs credential_process to get credentials, kubectl runs an exec plugin to get a token, and ssh runs ProxyCommand to connect. pip install runs a package's setup.py or in-tree build backend.
Does this tool run or unpickle my file?
No. The file is read as bytes in your browser. Pickles are walked opcode by opcode, the way Python's pickletools disassembler does it, without building any object or calling anything. Config files are read as text. Nothing is uploaded and nothing is executed.
Why do AI pentest agents need this?
An agent that downloads files from a target and then uses them (checks out a dumped repository, loads a pickled session, installs an SDK, uses a found AWS or kube config) runs whatever those files tell its tools to run. NebuSec reports that in its ArtexPot research files served by a target took over the containers of AI pentest agents such as ARTEX in 33 of 36 runs, the fastest in 27 seconds.
Is a pickle that only imports numpy safe?
Safer, not safe. Ordinary numpy, pandas and scikit-learn pickles import reconstruction functions, which this tool lists as notes. Loading still runs code chosen by whoever wrote the file, and a dangerous call can sit later in the file or in a nested pickle. Only load pickles you created; for models, prefer safetensors or ONNX, and torch.load with weights_only=True.
What does "No code paths found" mean?
That none of the patterns this tool knows appear in the file. It is not proof of safety: formats it cannot open (lz4, bz2 or xz compression, native code, Python source) are listed under "What we could not check". Handle untrusted artifacts in a disposable sandbox with no secrets and no network either way.
More tools like this
Related tools and labs, with new picks every day.