SShortSingh.
Back to feed

Developer's self-audit of own repos flags three shell-injection risks, prompting a signed, verifiable scanner

0
·5 views

A developer ran a shell-injection scanner over their own repositories and found three flagged files, including one that built a shell command from an environment variable that can be attacker-controlled in containers. After fixing the issues and getting a clean rescan, they argued that an unverifiable "clean" result is not real evidence, so they built a tool that produces dated, HMAC-signed reports listing the rules applied, quoted offending lines, and explicit analysis limits. The open-source Python scanner, released under the MIT license with 126 tests, uses AST parsing for Python and token-level heuristics for Bash. The developer stresses that the tool does not certify code safety and that judging whether a finding is exploitable remains an engineering decision.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Nespresso Explores Reducing Coffee Grams Per Capsule in 'Project Olympus'

A blog post by Alvin Bunk discusses a Nespresso initiative aimed at lowering the amount of coffee used in each capsule. The article is linked from Hacker News, where it gathered 12 points and 5 comments. The available material offers limited detail beyond the project's name and stated goal. Further specifics about the scale, timing, and rationale would need to be confirmed from the original post.

0
ProgrammingDEV Community ·

Four container escape flaws and what they reveal about running untrusted agent code

Containers are often the default place to run AI agent code, but code written by a model after reading an untrusted issue should be treated as untrusted, making the container a real security boundary. The article reviews four public container vulnerabilities, all since fixed, to show a recurring pattern: containers share the host kernel and runtime, so bugs there can let code inside reach the host. The first, a 2019 runc flaw in Docker and related tools, let a root user in a container overwrite the host's runc binary, while a 2024 runc leak gave processes access to the host filesystem. The article also describes Dirty Pipe, a 2022 Linux kernel bug that let unprivileged users write to read-only files shared across containers and the host. The takeaways are to avoid running agent commands as root, to treat agent-written image builds as untrusted input, and to keep the host kernel patched.

0
ProgrammingDEV Community ·

How to export Markdown to a well-formatted PDF on a Mac

For a quick result, a Mac user can open the Markdown file in any app that renders it as a formatted page and then choose Print and Save as PDF. More control over margins, headers, page breaks and landscape layouts requires a tool such as Pandoc or a Markdown editor with configurable PDF export. Pandoc is free and scriptable, suited to repeated use, though it needs a LaTeX engine or a CSS route through HTML and some setup time. Editors such as Obsidian, Typora, iA Writer and Coffee differ in page size, margin, page number and template options. Since Markdown has no page settings, all layout choices are made in the tool rather than the file.

0
ProgrammingDEV Community ·

22 Claude Code Add-ons Reviewed, With One Star Count Found Misattributed

A widely shared list of 22 Claude Code skills, grouped by build, design, research, and marketing use cases, has been checked repository by repository. All 22 exist and are active, and some show higher star counts than the original post cited. However, the star figure given for remotion belongs to the flagship remotion-dev/remotion project rather than the smaller remotion-dev/skills repo that is actually installed. Two entries, graphify and humanizer, share names with other well-known skills but are separate projects, so users are advised to verify the exact repository before installing. The remaining skills can be installed with a single command each.