SShortSingh.
Back to feed

Local LLM Finds Real Terraform Security Flaws Without Cloud Upload

0
·4 views

A developer tested whether a model running entirely on a laptop could perform a useful security review of real Terraform code. The review used a sanitized copy of their infrastructure with seven deliberately planted issues, rated easy to hard in advance. The reviewer was a small agent built with AWS's open-source Strands Agents SDK, which can target a local server or Amazon Bedrock by changing one line. The most valuable discovery was an unplanted flaw: an attached AWS managed policy letting the host role read any SSM parameter, undermining a later restriction. The author also used the experiment to compare two local models, Ornith 1.5 and Inkling 2 Mini, on the same task.

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 ·

Un chatbot sobre Couchbase: por qué un campo inexistente no genera error

Un desarrollador describe cómo conectó un modelo de lenguaje a una colección de Couchbase Capella con esquema flexible. El problema identificado es que una consulta sobre un campo inexistente no falla, sino que devuelve un resultado vacío que puede parecer una respuesta válida. Para evitarlo, el sistema inventaría los campos reales por categoría y los inyecta en el prompt del modelo. Además, un guardia de lista blanca contrasta cada ruta de la consulta generada con ese inventario antes de ejecutarla. Las operaciones de escritura pasan por una simulación previa y requieren confirmación del usuario.

0
ProgrammingDEV Community ·

Malicious GGUF Language Models on Hugging Face Reportedly Affected About 2,400 Users

Security reports indicate that some GGUF-format large language models hosted on Hugging Face contained hidden malware. The infected models reportedly reached roughly 2,400 people who downloaded them. The article uses the incident to argue that developers should vet third-party AI models and dependencies before use. It also calls on model hosting platforms to strengthen their screening processes. The piece is largely reflective, drawing on the author's own experience with dependency risks and code review practices.

0
ProgrammingDEV Community ·

Shadow DNS: How Devices Bypass Your DNS Filtering and How to Find Them

DNS filtering only protects devices that actually send their queries to the filtering resolver, which many do not. Smart TVs, IoT gadgets and some phones hard-code external resolvers, while browsers and operating systems increasingly tunnel DNS over HTTPS or DoT, hiding it from network-level blocklists. This creates 'shadow DNS' that leaves SOC teams blind and silently defeats threat-intel blocking and compliance policies. The author open-sourced shell tools, dns-leak-check.sh and arp-dns-watch.sh, to audit which hosts can reach external DNS on networks the user owns. The article also advises redirecting or blocking outbound port 53 at the gateway to close the gap.

0
ProgrammingDEV Community ·

FEFO vs FIFO: Allocating Stock by Expiry Date in Code

A common stock-picking approach selects inventory batches by arrival date, which is problematic for goods with expiry dates. The batch received first may not be the one that expires first, so this method can leave stock to spoil. The article presents a short JavaScript function that sorts batches either by earliest expiry (FEFO) or earliest arrival (FIFO) and allocates the requested quantity accordingly. Using ISO date strings allows direct string comparison without date parsing, and an example shows FEFO picking from a later-arriving batch that expires sooner. The author also outlines extra safeguards such as tie-breaking rules, minimum remaining shelf life per customer, skipping blocked batches, and recording allocations for traceability during recalls.