securitylab_n•July 17, 2026•🇷🇺Translated from Russian

Scientists Introduce Centered Daydreaming Algorithm to Eliminate Hallucinations in Hopfield Networks by Mimicking Sleep and Memory Consolidation

Researchers have transferred the human brain’s daytime encoding and nighttime memory consolidation process into Hopfield networks, one of the earliest mathematical models of associative memory, successfully eliminating hallucinations caused by false attractors.

During the day the brain records new information; during sleep it reviews accumulated memories, reinforcing useful patterns and weakening irrelevant ones. Scientists replicated this mechanism in Hopfield networks first introduced in 1982, where interconnected artificial neurons store complete patterns that can later be reconstructed from partial or noisy inputs.

The classic model, however, suffers from severe capacity limits—roughly 13 memories per 100 neurons—because the remaining space is occupied by false attractors. These spurious states mix features from multiple learned patterns, causing the network to reconstruct nonexistent combinations that resemble AI hallucinations.

Earlier “dreaming” algorithms attempted to clean the network after training by letting it wander through random states and weakening connections leading to false attractors. Prolonged cleanup, though, triggered catastrophic forgetting, erasing correct memories along with erroneous ones.

In 2025 the team introduced the Daydreaming algorithm, which merges learning and cleanup into a single continuous process. The network simultaneously strengthens valid states and suppresses false attractors during the encoding phase itself, raising capacity close to the theoretical maximum of one memory per neuron.

The original Daydreaming method worked well only with balanced datasets where black and white pixels appeared in roughly equal proportions. Real photographs frequently violate this assumption: heavily overexposed images contain mostly white pixels, while nighttime shots are dominated by black pixels, making distinct objects appear artificially similar.

To solve the imbalance problem, researchers developed Centered Daydreaming. Instead of comparing absolute pixel values, the algorithm measures each pixel’s deviation from the dataset mean. For face recognition, the system first computes an average face and then focuses exclusively on the distinctive features that differentiate individual images from this baseline.

This local, mean-centered approach preserves biologically plausible operation: each artificial neuron updates its connections using only information available from its limited neighborhood, without requiring global knowledge of the entire network state.

Experiments confirmed that Centered Daydreaming maintains high reconstruction accuracy even under extreme data skew, whereas the previous version suffered significant degradation. Although Hopfield networks are far simpler than modern large language models, their transparent structure allows researchers to trace exactly how false memories emerge and how targeted connection adjustments can remove them.

The study demonstrates that important distinctions can be separated from dominant background statistics without centralized control, potentially informing the design of more reliable, efficient, and interpretable AI architectures in the future.

Related articles

Habr•AI Security

OpenShell Isolates Untrusted AI Agents Running Real Credentials in Kubernetes Using Agent Sandbox and Kyverno

OpenShell, a CNCF Sandbox project originally started by NVIDIA, provides a secure runtime for AI agents that execute shells, install packages, read files, and open network connections based on untrusted internet-sourced text. Each agent runs inside a sandbox where a trusted supervisor enforces fine-grained controls on filesystem via Landlock, processes via seccomp and non-root users, network traffic at the binary and HTTP level, and credentials by substituting real keys only for approved endpoints. The Kubernetes backend relies on Agent Sandbox resources to create pods, Services, PVCs, Secrets, and NetworkPolicies, while Kyverno admission policies add enforcement for images, RBAC, and resource limits that OpenShell itself does not cover. In contrast, Agent Substrate from Google focuses on cost-efficient scaling by pausing idle agents and using gVisor or Cloud Hypervisor sandboxes with snapshotting instead of per-agent supervisor pods. Administrators can update network and HTTP policies on a live sandbox without restart, and every outbound request is inspected for destination, port, calling binary, and method. The approach gives platform teams Kubernetes-native objects for auditing while addressing the fundamental risk of giving production credentials to agents that process arbitrary external input.

AntiMalware•AI Security

Yandex Releases AI Pentester for Continuous Vulnerability Scanning in Web Apps and AI Systems

Yandex Security has introduced Yandex AI Pentester, an automated penetration testing platform powered by AI agents. The tool performs ongoing security assessments of corporate web applications, APIs, and AI-based functions, with a focus on both traditional vulnerabilities and prompt injection attacks. Currently available only in on-premises deployments, the SaaS version is scheduled for release in the first quarter of 2027. The announcement highlights that exploitation of known vulnerabilities has become the leading initial access vector for corporate networks, surpassing the use of stolen credentials. Yandex also reported the first observed attacks using fully autonomous AI systems in autumn 2026, while noting that organizations take an average of 43 days to remediate vulnerabilities. The solution builds on SolidPoint technology and 15 years of experience from SolidLab, which has conducted over 500 penetration tests for major Russian companies.

Habr•AI Security

AI Coding Agents Leak Passwords and Personal Data to Cloud Models in 574 of 1337 Test Runs

An independent researcher tested multiple AI coding assistants including Claude Code, GigaCode, SourceCraft, Codex and Qwen Code by embedding test passwords, private keys and personal documents in a B2B SaaS project. In 574 out of 1337 runs, at least one unnecessary credential reached the cloud model. Leak rates varied sharply by task and model: SourceCraft sent passport data in all ten attempts while Codex and GigaCode with Opus never did. When asked to draft support emails containing configuration files, GigaCode included the password in every single draft. The study also showed that agents sometimes pulled data from unrelated folders such as Finance when instructed only to scan Downloads. The findings highlight persistent alignment failures that could allow compromised agents to access stored prompts containing real credentials.

Habr•AI Security

FunPay Sellers Peddle DeepSeek Models as Fake Claude Fable 5.2 and GPT-6.2 APIs

Marketplace listings on FunPay and related chats offer API keys for Claude Fable 5.2, Opus 5.5 and GPT-6.2 Astra at steep discounts without requiring foreign cards. Independent testing of three purchased keys revealed that all endpoints routed traffic to DeepSeek V4.1 Flash or older Sonnet weights instead of the advertised frontier models. Verification steps included raw HTTP requests exposing model names, usage token analysis for hidden system prompts, tokenizer fingerprinting via lmfpd, and cache behavior checks that returned zero cached tokens. Sellers using NewAPI and kiro-gateway backends injected up to 30K extra prompt tokens, disabled reasoning blocks, and broke prompt caching, inflating costs up to 100x on long coding sessions. The investigation also referenced a CISPA audit showing 45.83% of 17 similar aggregators failed model-weight verification yet appeared in published research. Official pricing tables highlight that genuine Claude Fable 5.2 offers 40x cache discounts unavailable on these gray-market gateways. The author ultimately recommends paid subscriptions such as Antigravity over any unverified third-party keys.