SShortSingh.

Programming

0
ProgrammingDEV Community ·

Documenting Unfixed Vulnerabilities Through Formal Risk Acceptance

Security professionals often face clients who decline to fix known vulnerabilities, for reasons such as legacy software, vendor patch limits, or costly downtime. The article argues that such decisions should be recorded through a formal risk acceptance document rather than left as unresolved findings that lose context over time. It recommends listing the affected systems, the reason a fix isn't feasible, the realistic consequences, and compensating controls, along with a named client decision owner and clear expiry and review dates. Acceptance usually involves cheaper protective measures like network segmentation, firewall restrictions, or added monitoring rather than doing nothing. Accepted risks should be tracked separately and reviewed periodically, with earlier reconsideration if threat indicators such as known exploitation or new exposure emerge.

0
ProgrammingDEV Community ·

Verifying Vulnerability Scan False Positives Without Overlooking Real Risk

Vulnerability scanners often flag issues that turn out to be inaccurate, such as an Apache alert on a server running nginx or a patch reported missing right after an update. Common causes include guessing software versions from banners, ignoring backported fixes on Red Hat, Debian and Ubuntu, leftover files from old installs, pending reboots, shared IP addresses, and overly generic checks. The article argues that some supposed false positives are actually true findings that simply differ from expectations, and should be handled with their own remediation steps. It recommends a consistent verification process: reviewing scanner evidence, confirming directly on the host, consulting vendor advisories, and classifying each result as confirmed, false positive with proof, or true but different. Each dismissed finding should be documented with its reason, evidence, and review date so it can be audited and rechecked later.

0
ProgrammingDEV Community ·

Testing Live Watchlist Events Reliably by Modeling Presence, Not Timing

The article argues that flaky tests for a live trading watchlist stem from treating event time, batching, and delivery as timing problems rather than state. It recommends making event time an explicit dependency, flushing batches using a defined watermark, and asserting symbol presence as a state transition instead of relying on fixed sleeps. The author notes that batching delays are intentional and that transport ordering from protocols like WebRTC does not define what counts as current in the application. A deterministic reducer that tracks each symbol's latest sequence and status can be tested with an in-memory clock, while the network layer is tested separately. The approach keeps the production batching rules intact while removing sources of noise from CI runs.

0
ProgrammingDEV Community ·

Hearing words is not the same as understanding a request

Listening involves more than receiving words; it also requires checking understanding and making corrections usable in action. In a fictional kitchen example, a clarifying question prevents someone from handing over the wrong bowl. Research by Apperly and colleagues on adults interpreting instructions from another person's perspective is cited, though the article notes these experiments do not show how such abilities develop in childhood. The author suggests focusing clarification on differences that affect the outcome, and stating a brief summary of what was understood so mistakes can be corrected. The piece also argues that corrections should update the planned action rather than merely being recorded in memory.

0
ProgrammingDEV Community ·

Installing Python packages can run malicious code; teams urged to pin hashes and delay new releases

A recent compromised LiteLLM release on PyPI reportedly stole credentials and planted a backdoor, highlighting that installing packages can execute code. The article explains that malicious code can run before import through setup.py in source distributions, through .pth files in site-packages that execute at interpreter startup, or via transitive dependencies. Attackers typically target environment variables, cloud and SSH credentials, and CI secrets before exfiltrating them. The suggested defenses include pinning exact artifact hashes, avoiding source distributions, applying a seven-day cooldown on new releases, and running pip-audit in CI.

0
ProgrammingDEV Community ·

PHP2Shell flaws and stolen UpdraftCentral keys threaten PHP and WordPress sites

Emergency PHP patches on October 21 address two remote code execution flaws, CVE-2026-109618 and CVE-2026-109619, which score 9.2 and can let unauthenticated attackers run code on web servers. Nearly all PHP versions back to 5.4 are reportedly affected, with Apache mod_php carrying the highest risk, and the bugs can also leak memory containing other users' credentials. Separately, attackers breached the developer of the UpdraftPlus WordPress backup plugin and are using stolen UpdraftCentral keys to install backdoor plugins that create hidden admin accounts. Administrators are advised to check PHP versions against fixed releases, restart services after patching, and review sites for unexpected plugins and users. Updating UpdraftPlus and removing the connection key are recommended as immediate cleanup steps.

0
ProgrammingDEV Community ·

Probabilistic graph neural networks aim to monitor aquaculture ponds under real-time policy limits

A developer built a sensor network across several fishponds in a cooperative near their city to track water quality. They found that per-sensor forecasting models missed cross-pond effects, since shared water channels let problems such as ammonia spikes spread between ponds. Treating the sensor layout as a graph, with ponds as nodes and hydrological connections as weighted edges, allowed the model to capture those dependencies. The work extends this to probabilistic inference and to enforcing regulatory constraints such as discharge limits and antibiotic restrictions in near-real time. The article describes the resulting architecture and lessons from testing it.

0
ProgrammingDEV Community ·

Why a 'nothing changed' report can silently hide real problems in incremental tools

A developer describes a rotation probe that checks which project memory files changed since the last run, and notes that the tool repeatedly reported 'nothing changed' while being wrong. The probe's bookmark used a naming scheme that didn't match the register, so ten of the projects were invisible to it while the output still looked like a normal run. A timestamp format mismatch caused the same silent failure, because zero newer files is indistinguishable from a healthy result. The author fixed the parsing so unreadable stamps raise an explicit error with exit code 2 instead of a clean empty list. The same comparison can also fail when a stamp lies ahead of the clock, leaving projects permanently reported as unchanged.

0
ProgrammingDEV Community ·

Overnight Azure Kernel Upgrade Stopped MongoDB From Starting on a VM

A team found their application down one morning with no deployments or configuration changes to blame. Investigation showed MongoDB refusing to start, with logs pointing to a known incompatibility between MongoDB 8.0.29 and Linux kernel 6.19 and newer. Azure had automatically upgraded the VM's kernel overnight during a maintenance window, moving it to a version that MongoDB explicitly blocks. Early attempts to fix the problem through file permissions and lock-file removal were unsuccessful. The root cause was identified as the kernel change, not data corruption or misconfiguration.

0
ProgrammingDEV Community ·

Qwen3 4B Outperforms 0.6B on Document QA Accuracy, but the Smaller Model Runs Faster on 6 GB GPU

A developer testing local retrieval-augmented generation on a laptop with a 6 GiB RTX 3060 compared two Qwen3 models run through Ollama. The 0.6B model generated text roughly three times faster than the 4B model, while using about a third of the peak GPU memory. On six synthetic document questions, the 4B model answered all correctly, whereas the 0.6B model passed four. The smaller model's failures included combining conditions incorrectly and returning malformed output for a case with missing information. The author notes that generation speed figures include reasoning tokens and do not reflect how quickly complete answers appear.

0
ProgrammingDEV Community ·

Turning a Product Name into an Offline Wake Word: Key Testing Considerations

A developer explores how smart products can recognize a custom wake word locally, without sending audio to the cloud. The article distinguishes between keyword spotting, suited to a few fixed phrases, and full speech recognition, needed for open-ended speech. It recommends testing candidate phrases with multiple speakers, varied distances, real hardware, background noise, and similar-sounding words. The author notes that browser-based screening is only a first filter and cannot guarantee performance in a real device. A standard ONNX or TFLite model is presented as a practical way to deploy across platforms, with cooldown logic and safe failure handling still required in the application.

0
ProgrammingDEV Community ·

Computer search closes 420 classes of a Kakeya-type configuration, leaving one case open

A research notebook on finite 2-groups with all involutions central reports progress on a number A(t) that would settle a family of such groups. The author's open-source work proves that one configuration, called (B5), is empty, meaning no anisotropic system with t = 7 and dimension 9 can contain an element of rank 3 in that configuration. The result rests on many SAT-solver answers saved without proof certificates, together with hand-written lemmas. With this step, the bound A(7) <= 8 reduces exactly to showing that a second configuration, (B6), is also empty, and 20 of its 68 classes remain unresolved. The notebook states that the work was researched and written with AI agents, and that no human mathematician has yet checked the proofs.

0
ProgrammingHacker News ·

mitmproxy adds --emudhra option in new commit

A commit to the mitmproxy GitHub repository has added a new command-line option called --emudhra. The change was shared on Hacker News, where it received 19 points and 3 comments. The available material includes only the commit link and discussion metadata, without a detailed description of the option's purpose or behavior. Further details would need to be confirmed by reviewing the commit itself or the project's documentation.

0
ProgrammingDEV Community ·

Postgres RAG chunking boundaries shape retrieval quality in knowledge-base bots

An internal knowledge-base bot showed degraded answer quality even though its services stayed up and queries succeeded. The trace revealed that the cited sources pointed to the correct handbook but the wrong passage, meaning the retrieval unit itself was flawed. Chunks that mix topics match weakly, while chunks that split a procedure across boundaries may omit the answer entirely. The guidance recommends structure-aware boundaries such as headings and complete procedures, paired with an evaluation set that checks whether the top results contain the supporting passage. Alerting should focus on sustained losses of answer-bearing chunks in retrieval results rather than on fluency of model output.

0
ProgrammingDEV Community ·

Experiment Finds AI Agents Struggle With Self-Managed Data Systems and Schema Design

A developer tested letting an AI autonomously manage a personal calendar and document folder, which worked for a while but degraded as the file count grew. In a second experiment, the AI was left to organize political data in a Neo4j graph database and S3-style storage, and it ended up modeling the graph like a relational database without using any relationships. The database also contained duplicate, inconsistent, and arbitrarily structured records. The author questions whether AI needs overly detailed instructions or whether specialized systems should be built instead of giving AI general tools. The piece references a paper suggesting agentic search can outperform traditional retrieval-augmented generation.

0
ProgrammingHacker News ·

Solo developer launches Markdown and raw HTML blogging platform scoring 99 on PageSpeed

A developer has released a new blogging platform after two years of solo development, driven by dissatisfaction with existing options. The platform aims to be extremely lightweight, with a sample blog reportedly scoring 99 to 100 on Google's PageSpeed Insights. Its creator says it avoids unnecessary JavaScript, lets bloggers place their own ads, supports managing multiple blogs, and offers an editor that supports semantic markup. The sample blog is set to noindex, which lowers its SEO score, and the developer announced the launch on Hacker News seeking feedback.

0
ProgrammingHacker News ·

Integer multiplication bound of K = 0.003 reportedly crossed in GitHub pull request

A pull request in the CrocSwap integer-mult-bounds repository on GitHub reports crossing a threshold of K = 0.003 for integer multiplication. The item was shared on Hacker News, where it has drawn 5 points and one comment. The source material provides only the link and engagement figures, so the technical details of the bound and the method used are not described here. Readers would need to consult the linked pull request for specifics on the result.

0
ProgrammingHacker News ·

Researchers say a recent PHP vulnerability has no easy exploit path

A post on eliastaylor.com argues that a particular PHP vulnerability does not currently have a simple, ready-made exploit. The piece was shared on Hacker News, where it gathered 43 points and 3 comments. The article itself is linked rather than reproduced, so the full technical reasoning is not available here. The discussion centers on how difficult it would be for attackers to weaponize the flaw in practice.

← NewerPage 162 of 2964Older →