SShortSingh.
Back to feed

Docker Bypasses UFW, Exposing Denied Ports to the Internet

0
·10 views

A developer found that Postgres, Redis, and an internal admin dashboard were reachable from the internet despite explicit UFW deny rules on their VPS. The cause is that Docker publishes container ports through NAT rules that are evaluated before UFW's INPUT chain, so the packets are forwarded to containers and never checked against UFW. The author describes a five-minute reproduction on a test VM showing UFW reporting a port as denied while Docker still served it. Recommended fixes include not publishing internal ports, binding them to 127.0.0.1, setting a loopback default in daemon.json, or filtering traffic in the DOCKER-USER chain. Disabling iptables in Docker is discouraged because it breaks container networking.

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 ·

Researcher finds airlock approval bypass in Hermes Agent guardrail, fixed in 0.2.3

A developer testing airlock, a prompt-injection guardrail plugin for Hermes Agent, found that its approval prompts could be skipped when a session ran unattended. In a oneshot run, a simulated agent sent mail contents to a local listener through a terminal command, and neither a prompt nor a block occurred. The cause was that airlock checked global settings while Hermes recorded unattended status within the individual turn. The issue was reported privately and fixed in airlock 0.2.3, which now asks Hermes's own approval logic whether a call can be approved without a human. The fix covers several run modes, including oneshot, yolo, cron, webhook and subagent contexts, and includes an end-to-end test. The author also describes a separate approach that refuses writes from tainted agents instead of asking for approval.

0
ProgrammingDEV Community ·

ABLITERAX: an open framework for auditing and ablating LLM refusal representations

ABLITERAX is an open-source research system that locates refusal representations inside large language models and measures their linearity, multi-directionality, and distribution across layers. It performs targeted ablation under capability constraints and uses a held-out evaluation set to check that a drop in refusals does not come at the cost of general reasoning. The project's design stance stresses explicit limits, reporting of failures, and reversible, auditable changes to original checkpoints. Its authors argue that safety in frontier-scale and mixture-of-experts models is distributed across several pathways, so single-direction approaches tend to fail there. The document also specifies an architecture registry that requires verified adapters rather than name-pattern guesses for tensor mapping.

0
ProgrammingDEV Community ·

Git Reset vs Revert vs Restore: When to Use Each

The article explains that git reset moves a branch to another commit, git revert adds a new commit that cancels an earlier one, and git restore copies file contents without changing history. The main deciding factor is whether others have already pulled the commit: if they have, revert is the safer choice, and if not, reset can be used. The author tested all three commands on Git 2.56.0 in a scratch repository, including a push to a bare remote. The guide covers the three reset modes (soft, mixed, and hard) and how each treats staged and unstaged changes. It also shows how to undo a last commit while keeping the work and how to recover after a hard reset.

0
ProgrammingDEV Community ·

SparkCat malware scans phone photos for crypto seed phrases and steals funds

Kaspersky has identified a malware called SparkCat that hides inside ordinary-looking applications, including some distributed through official app stores. It scans the photo gallery for seed phrases, which are often stored as screenshots or photos, and sends them to attackers. Once an attacker has a seed phrase, the victim's cryptocurrency can be drained. The article advises keeping seed phrases offline in a secure, durable location, avoiding storing them on connected devices, and considering hardware wallets with a screen rather than software wallets on phones or computers. The piece was originally published on 0xalert.com, a crypto asset protection service that promotes its own paid auditing and alert offerings.