Is herdrdev/herdr safe?
- Defense-evasion command idiom
- Sensitive path / secret-location reference
- Python shell/command execution
What to do: Read the findings below before installing: each one opens the exact line of code it was found on.
herdrdev/herdr is a GitHub repository analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 2 risky constructs are reported for review. Its Rust, C# and Perl code was not checked for shell, network or file access, so this result is partial. It can: filesystem read, filesystem write, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 40/100 (medium).
herdr
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of herdrdev/herdr's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (9)
The component references credential locations like ~/.ssh or .aws/credentials.
Some(ssh_config_quote("~/.ssh/config"))Why it matters: Touching secret locations is a common first step before stealing them — confirm why it's needed.
Fix: Verify why the component references credential locations; reading these is a common precursor to secret exfiltration.
A command uses a known defense-evasion idiom: PowerShell execution-policy bypass / encoded command / hidden window, macOS code-signing bypass, or launching a payload from a world-writable temp directory. These are hallmarks of droppers and rarely appear in legitimate code. (3 occurrence(s) shown as evidence).
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%INSTALLER_PATH%" %*
$server = Start-Process -FilePath $script:Exe -ArgumentList "server" -PassThru -WindowStyle Hidden
$server = Start-Process -FilePath $exe -ArgumentList "server" -PassThru -WindowStyle Hidden
Fix: Verify why the component bypasses execution policy / code signing or runs from a temp directory; these patterns are characteristic of malware staging.
The component can run operating-system commands or spawn processes.
const { execFileSync } = require('node:child_process');import { execFileSync } from 'node:child_process';Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.
The component can run operating-system commands or spawn processes.
completed = subprocess.run(command, capture_output=True, check=False)
result = subprocess.run(command, capture_output=True, text=True, check=False)
result = subprocess.run(command, capture_output=True, text=True, check=False)
result = subprocess.run(command, capture_output=True, text=True, check=False)
result = subprocess.run(
["git", "status", "--short", "--", str(path)],
capture_output=True,
text=True,
check=False,
)output = subprocess.check_output(
["git", "log", "--pretty=format:%s", rev_range], text=True
).strip()with subprocess.Popen(
["cargo", "build", "--release", "--locked", "--message-format=json"],
cwd=PROJECT_ROOT,
stdout=subprocess.PIPE,
text=True,
encoding="utf-8",
) as cargo:return subprocess.check_output(["git", *args], text=True).strip()
result = subprocess.run(
["git", "merge-base", "--is-ancestor", ancestor, descendant],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
check=False,
)return subprocess.check_output(["git", *args], text=True).strip()
return subprocess.run(
["git", "merge-base", "--is-ancestor", base, commit], check=False
).returncode == 0payload = json.loads(subprocess.check_output(
["gh", "api", f"repos/{repo}/releases/tags/{tag}"], text=True
))return subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=repo, text=True).strip()
status = subprocess.check_output(
["git", "status", "--porcelain", "--untracked-files=all"],
cwd=repo,
text=True,
).strip()subprocess.run(
["zig", "build", "dist", "-Demit-lib-vt", "-Doptimize=ReleaseFast"],
cwd=source_repo,
check=True,
)subprocess.run(command + ["splat", "--copy", "--output", str(SDK_ROOT)], check=True)
subprocess.run(
[os.environ.get("ZIG", "zig"), "libc", "-target", "x86_64-windows-msvc", str(config)],
check=True,
)subprocess.run(["rustup", "target", "add", TARGET], check=True)
subprocess.run(
# --tests also checks Windows-only test code, which Unix builds never compile.
[
"cargo",
"clippy",
"--bin",
"herdr",
"--tests",
"--lock …subprocess.run(command, check=False, **kwargs)
Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.
The component writes or deletes files on disk.
if (out) fs.writeFileSync(out, result.report);
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
The component reads files from disk.
content = ENGINE_SOURCE.read_text(encoding="utf-8")
published_digest = hashlib.sha256(manifest_path.read_bytes()).hexdigest()
if cmp == 0 and manifest_path.read_text(encoding="utf-8") != bundled_path.read_text(encoding="utf-8"):
digest = hashlib.sha256(bundled_path.read_bytes()).hexdigest()
content = source_path.read_text(encoding="utf-8")
content = source_path.read_text(encoding="utf-8")
return path.read_text(encoding="utf-8")
content = path.read_text(encoding="utf-8")
content = path.read_text(encoding="utf-8")
parse_file(path.read_text(encoding="utf-8"), model)
data = json.loads(reference_path.read_text(encoding="utf-8"))
for line in path.read_text(encoding="utf-8").splitlines():
for line in path.read_text(encoding="utf-8").splitlines():
data = json.loads(path.read_text(encoding="utf-8"))
validate_static_msvc_runtime(herdr_exe.read_bytes(), herdr_exe.name)
if (stage_dir / MARKER_PATH).read_bytes() != marker_data(metadata, architecture):
validate_static_msvc_runtime((stage_dir / "herdr.exe").read_bytes(), "herdr.exe")
content = source_path.read_text(encoding="utf-8")
return json.loads(path.read_text(encoding="utf-8"))
data = json.loads(path.read_text(encoding="utf-8"))
notes = Path(args.notes).read_text(encoding="utf-8")
result = catalogue() if args.command == "matrix" else summarize(json.loads(args.input.read_text(encoding="utf-8-sig")))
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component writes or deletes files on disk.
output_path.write_bytes(result.stdout)
output_path.with_suffix(output_path.suffix + ".stderr").write_bytes(result.stderr)
output_path.write_bytes(result.stdout)
(capture_dir / f"{prefix}.json").write_text(
json.dumps(sample_meta, indent=2, sort_keys=True) + "\n",
encoding="utf-8",
)(capture_dir / "metadata.toml").write_text("\n".join(lines) + "\n", encoding="utf-8")(capture_dir / "pane.json").write_text(
json.dumps(pane.raw, indent=2, sort_keys=True) + "\n",
encoding="utf-8",
)(capture_dir / "agent.json").write_text(
json.dumps(pane.agent_raw, indent=2, sort_keys=True) + "\n",
encoding="utf-8",
)path.write_text(text, encoding="utf-8")
write_text(path, updated)
write_text(Path(args.output), body)
write_text(manifest_path, output)
write_text(announcement_path, "null\n")
shutil.copyfileobj(response, output)
shutil.copy2(herdr_exe, staging / "herdr.exe")
destination.write_bytes(payload)
marker.write_bytes(marker_data(metadata, architecture))
shutil.copy2(source, destination)
shutil.copy2(stage / relative, target)
Path(args.output).write_text(notes, encoding="utf-8")
Path(args.output).write_text(content, encoding="utf-8")
shutil.rmtree(destination)
shutil.copytree(extracted, destination)
metadata_path.write_text(json.dumps(asdict(metadata), indent=2) + "\n")
config.write_text(libc_contents(SDK_ROOT))
args.output.write_text(json.dumps(result, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
The component makes outbound network requests.
const response = await fetch('https://api.github.com/graphql', {Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
The component makes outbound network requests.
import urllib.request
with urllib.request.urlopen(
package["url"], timeout=DOWNLOAD_TIMEOUT_SECONDS
) as response, package_path.open("wb") as output:Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in herdrdev/herdr.
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →