SShortSingh.
Back to feed

Homelab Engineer Exposes Kubernetes Security Gaps That Three Scanners Missed

0
·1 views

A software engineer running a homelab Kubernetes cluster found that three widely used security tools — Trivy, kube-bench, and Polaris — all reported a clean bill of health despite real exploitable vulnerabilities. To test runtime security, the engineer built NEMESIS, a purple team platform deployed as a DaemonSet inside the cluster, allowing attack simulations from within the same pod network as real workloads. The platform uses a Python controller for orchestration and a Go-based attack agent on every node to execute scenarios including token abuse, lateral movement, and data exfiltration probes. During one test, the agent discovered that the default service account had a ClusterRoleBinding granting read access across all namespaces, enabling it to retrieve a hard-coded PostgreSQL password stored in a ConfigMap. The exercise highlighted a key limitation of static analysis tools: they audit declared configurations but cannot detect what an attacker can actually do once inside a running cluster.

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
ProgrammingDEV Community ·

Developer documents three fixes needed to run gpt-oss-120b via Anthropic SDK on Sakura AI

A developer testing Sakura Internet's free AI Engine API encountered three consecutive roadblocks while connecting to the gpt-oss-120b model through Anthropic's Python SDK. The free tier, offered by Japanese cloud provider Sakura Internet, allows 3,000 chat completions per month at no charge, and the credit card requested at sign-up serves only as identity verification rather than a billing trigger. A 401 authentication error arose because Anthropic's SDK sends an x-api-key header by default, while Sakura's endpoint expects Bearer token auth, requiring the use of auth_token instead of api_key. A third issue emerged when indexing the response directly at content[0] failed due to a ThinkingBlock object appearing before the text block, which is resolved by filtering response content by type. All three issues have straightforward one-line fixes once their root causes are understood.

0
ProgrammingHacker News ·

Developer Builds Digital Twin Replays for All 64 World Cup Matches

A developer has created watchable digital twins covering all 64 games of the FIFA World Cup. The project involves building data-driven simulations that replicate real match events in a viewable format. Details of the technical approach are documented on the developer's personal blog. The work was shared on Hacker News, where it attracted early attention from the tech community.

0
ProgrammingDEV Community ·

Developer releases 'quota', a terminal tool to monitor AI coding tool usage limits

A developer has built an open-source terminal utility called 'quota' that displays remaining usage and reset times for AI coding tools like Claude Code and Codex. The tool reads provider data directly from local files such as ~/.claude and ~/.codex, requiring no API calls, accounts, or telemetry. Users can run it as a single command, set it to auto-refresh in watch mode, or pipe its JSON output into scripts. The project was motivated by the frustration of hitting rate limits unexpectedly mid-task, a pain point that drew significant discussion on Hacker News. The tool is available via npm and planned features include shell prompt integration and CI pipeline quota checks.

0
ProgrammingDEV Community ·

Developer builds open-source CLI tool to track AI API spending by project and model

A developer created AICostTracker, a local command-line tool that logs AI API usage and breaks down costs by project and model, after growing frustrated with opaque billing dashboards from providers like OpenAI. The tool runs entirely on the user's machine, storing data in a local JSONL file rather than a cloud service. It supports pricing for major AI providers including OpenAI, Anthropic, and Google, as well as local Ollama models. Users manually log each API call with details such as token counts and project name, then run a summary command to view spending patterns. The tool is available as an npm package on GitHub, with automatic API call interception planned as a future feature.

Homelab Engineer Exposes Kubernetes Security Gaps That Three Scanners Missed · ShortSingh