TabCode Community Feed

Join the TabCode community to share posts, ideas, tech updates, ask questions, and connect with developers and technology enthusiasts.
New threads
38 0

TabCode Community Feed - Hello World !

Hello World !
TabCode For Computer Science Forums
TabCode Community Feed - Hello World !
63 0

AI Agent Security: How Circuit Breakers Work

An AI agent can do more than generate text. It can execute commands, call external tools, modify files, and interact with databases. But what happens when an agent gets stuck in a loop, repeatedly calls a dangerous tool, or executes a destructive command?
That's exactly the kind of problem an AI Agent Circuit Breaker is designed to prevent.
In a recent experiment, a team built a security layer that sits between an AI agent and its tools. They tested it against 60 potentially dangerous scenarios and 41 normal scenarios.
The result? It successfully blocked 44 out of 60 dangerous scenarios, achieving a detection and blocking rate of approximately 73%.
Here's how the system works and what makes this approach interesting.



🛡️ What Is an AI Agent Circuit Breaker?​

An AI Agent Circuit Breaker is a security layer that monitors an agent's requests and tool calls before allowing them to execute.
Instead of letting an AI agent communicate directly with an LLM or execute tools without additional checks, the circuit breaker acts as a protective layer between them.
It works as a sidecar, meaning it runs alongside the agent without requiring major changes to the agent's existing architecture.
In this implementation, the only required configuration change is updating the LLM's base_url so requests pass through the security layer first.
This allows the system to inspect requests, detect suspicious behavior, and block potentially dangerous actions before they cause damage.



⚙️ How Does the AI Agent Circuit Breaker Work?​

The system uses multiple plugins, each responsible for monitoring a specific type of behavior.
Rather than relying on a single security rule, it checks several risk patterns.

1. Detecting Infinite Tool Loops 🔄​

AI agents can sometimes get stuck calling the same tool repeatedly without making progress.
For example, if an agent calls the same tool three times within one minute and receives identical results, the circuit breaker identifies the behavior as a potential loop and stops it.
This helps prevent unnecessary operations and wasted resources.

2. Blocking Repeated Tool Failures​

If the same tool returns an error three consecutive times, the circuit breaker temporarily disconnects it.
This prevents an agent from repeatedly executing an operation that is already failing.

3. Rate Limiting Excessive Requests​

An agent that sends too many requests in a short period can consume resources unnecessarily or overload connected services.
The system monitors request frequency and applies rate limiting when the agent exceeds 10 requests per second.
Instead of allowing unlimited requests, it slows the agent down so the underlying issue can be investigated.

4. Blocking Dangerous Commands 🚨​

One of the most important protections is inspecting tool calls for potentially destructive commands.
For example, commands such as rm -rf and SQL statements such as DROP TABLE are blocked before execution.
This is especially important for agents that have access to terminal commands, databases, or production environments.
However, command-name matching alone is not enough for complete protection. A production-ready system should also inspect the actual operation, its arguments, the target resource, and the permissions available to the agent.

5. Detecting Repetitive AI Output​

The circuit breaker also monitors the model's generated output.
If the model starts repeating the same content, the system can interrupt the generation before it wastes additional tokens.
This helps reduce unnecessary API usage and prevents repetitive responses from continuing indefinitely.



📊 Monitoring With Prometheus and Grafana​

Blocking dangerous actions is only part of the job. You also need to understand what happened and why.
That's why the system integrates with:
  • Prometheus: Collects and stores monitoring metrics.
  • Grafana: Displays those metrics through dashboards and visualizations.
This makes it possible to monitor which requests were blocked, which tools triggered security rules, and why an operation was stopped.
For developers managing multiple AI agents, this kind of visibility can make troubleshooting and security monitoring much easier.



🧪 AI Agent Circuit Breaker Benchmark Results​

To evaluate the system, the team created a benchmark containing two types of scenarios:
  • 60 potentially dangerous scenarios that should be blocked.
  • 41 normal scenarios that should be allowed.
The reported results were:
TestResult
Dangerous scenarios tested60
Dangerous scenarios blocked44
Blocking rate73.3%
Destructive deletion commands blocked6/6
Infinite tool loops blocked14/14
Normal scenarios tested41
The system successfully stopped all six tested destructive deletion scenarios and all 14 tested tool-loop scenarios.
However, the overall result also highlights an important limitation: 16 dangerous scenarios were not blocked.
There is another issue worth considering. The team acknowledged that some legitimate operations might have been blocked unnecessarily.
This is known as a false positive, and reducing these cases is one of the main areas of ongoing development.



⚠️ Is a Circuit Breaker Enough to Secure an AI Agent?​

No. A circuit breaker is a useful security layer, but it should not be treated as a complete security solution.
AI agents can interact with sensitive systems, so additional protections are important:
  • Least privilege: Give agents access only to the tools and resources they actually need.
  • Human approval: Require confirmation before destructive or sensitive operations.
  • Input validation: Validate tool arguments before execution.
  • Audit logging: Record tool calls, execution results, and blocked operations.
  • Sandboxing: Run potentially dangerous commands in isolated environments.
  • Access controls: Restrict access to production databases, files, and infrastructure.
Combining these protections with a circuit breaker can significantly improve the security of an AI agent.



🚀 What's Next for the Project?​

The project was developed during a two-month hackathon, where the team reportedly won first place among 142 teams.
But winning a hackathon is only the beginning.
The real challenge is making the tool reliable outside a demo environment, especially when dealing with legitimate operations that might accidentally trigger security rules.
The team is continuing to improve the system, particularly its ability to distinguish between genuinely dangerous behavior and normal agent activity.
The source code repository is also expected to become public after a few additional changes are completed.



💬 What Security Feature Would You Add?​

AI agents are becoming increasingly capable of interacting with real systems, which makes controlling their actions just as important as improving their intelligence.
A circuit breaker can help stop infinite loops, repeated failures, excessive requests, and dangerous tool calls. But there's still room for stronger protection.
If you could add one more security feature to an AI agent, what would it be?
38 0

AGENTS.md Attack: How AI Agents Run Malware

An ordinary-looking Markdown file can create a serious security problem when an AI coding agent treats its contents as trusted instructions. In October 2026, security researchers at Forever Security reported finding a malicious AGENTS.md file on a customer's computer that attempted to make OpenAI Codex install malware.
The attack is especially concerning because the file doesn't need to be an executable. It's a text file that can influence what an AI agent does when it starts working in a directory.
Let's break down what happened, how Codex and Claude Code were affected, and what you can do to protect your machine.



🔍 What Is AGENTS.md, and Why Does It Matter?​

AGENTS.md is a Markdown file used to provide instructions to AI coding agents.
Developers can place it inside a project to tell an agent how to work, including:
  • Which coding standards to follow.
  • Which tools and commands to use.
  • How the project is organized.
  • Which files to modify or avoid.
  • How to run tests and build the project.
Tools such as OpenAI Codex can read these instructions automatically when working in a directory.
That's useful when the file comes from a trusted developer. But it becomes a security risk when someone else controls its contents.
An attacker can hide malicious instructions inside an ordinary-looking document, hoping the AI agent will follow them without the user realizing what's happening.



⚠️ How Did the Downloads Folder Become an Attack Vector?​

The attack relies on combining two things:
  1. A website can trigger a file download into the browser's Downloads folder without requiring the user to manually save the file.
  2. An AI coding agent may automatically read instruction files in the directory where it starts working.
Here's how the attack can happen:
  1. A malicious website
    The attacker gets a specially crafted [AGENTS.md] file downloaded into the user's Downloads folder.
  2. The user opens Codex
    The user starts Codex inside Downloads and gives it an ordinary coding task.
  3. The agent reads the instructions
    Codex discovers the malicious file and processes its instructions.
  4. The agent changes its configuration
    The instructions attempt to register an attacker-controlled MCP server and install a malicious npm package.
  5. The attack can persist
    Changes to machine-wide configuration can affect future Codex sessions, even when the user moves to another project.
Simplified attack sequence based on Forever Security's research.
The important detail is that the user doesn't necessarily need to open the downloaded file manually. The risk appears when the AI agent starts working in the directory containing it.
One important clarification: Forever Security demonstrated that a website could silently download a file in this way, but the researchers did not establish how the original malicious file actually arrived on the customer's computer.



🦠 What Malware Was the AI Agent Trying to Install?​

The suspicious file discovered by Forever Security targeted OpenAI Codex.
It instructed the agent to install an npm package called function-color, which researchers identified as malicious and associated with a malware campaign.
The company's security product detected the attempt and blocked it before the malicious code executed on the customer's machine.
The package was subsequently removed from npm.
This is what makes the incident particularly interesting: the attacker didn't need to trick the user into running a suspicious executable directly. Instead, the attacker attempted to use the AI agent as the mechanism for installing and executing malicious software.



🧪 What Happened When Researchers Tested Codex and Claude Code?​

Forever Security tested the technique against two popular AI coding agents. The results showed that both tools could be manipulated, although the attack worked differently in each case.

1. OpenAI Codex: More Than 90% Success in Testing​


The researchers took the actual malicious [AGENTS.md] file recovered from the customer's machine and tested it inside an isolated virtual machine.
According to their report:
  • Codex followed the malicious instructions and executed the test payload in more than 90% of attempts.
  • The instructions attempted to add an MCP server to the machine-wide configuration file ~/.codex/config.toml.
  • The configuration change could affect subsequent Codex sessions, regardless of which project the user opened.
  • The attack attempted to install the malicious function-color package.
The researchers also explained that most repeated tests used a harmless replacement payload that simply opened a calculator. They separately tested the real malicious package inside an isolated virtual machine.
This distinction matters: the 90% figure describes the researchers' experimental setup, not a guaranteed infection rate for every Codex user.

2. Claude Code: A Different Way to Exploit the Agent​

Claude Code was more difficult to manipulate.
Instead of relying on the original Codex attack file, the researchers created a separate malicious CLAUDE.md file to test another technique.
The instructions attempted to modify Claude Code's settings, redirecting API requests through a server controlled by the attacker.
This could expose authentication tokens and potentially allow an attacker to impersonate the user's session.
Forever Security reported that the settings modification succeeded in roughly half of its attempts.
The important difference is that this was a separate experimental scenario, not evidence that the original customer's AGENTS.md file directly compromised Claude Code.



🔥 Why Is This Attack More Dangerous Than It Looks?​

The biggest concern isn't simply that an AI agent might execute one malicious command.
It's that an attacker may be able to change the agent's configuration and influence what happens in future sessions.
Consider these potential consequences:
RiskWhat could happen
Malware installationThe agent installs and runs malicious packages.
Configuration manipulationAn attacker adds an unauthorized MCP server.
Token theftAuthentication credentials may be exposed.
API traffic redirectionRequests may pass through an attacker-controlled server.
Persistent compromiseMalicious settings may affect future sessions.
This changes how we should think about AI coding agents.
They aren't just autocomplete tools. They can read files, execute commands, install dependencies, modify configurations, and interact with external services.
Giving an agent access to these capabilities without appropriate restrictions can turn a simple instruction file into a serious security threat.



🛡️ How to Protect Yourself From Malicious AI Agent Instructions​

If you use Codex, Claude Code, or another AI coding agent, follow these precautions.

1. Never Run AI Agents Directly From Downloads​

This is the most important recommendation.
Don't start your coding agent inside your general Downloads folder.
Instead, create a dedicated directory for your development projects and open the agent inside the specific project you're working on.
For example:
Bash:
mkdir -p ~/Projects/my-project
cd ~/Projects/my-project
This reduces the risk of an unrelated file in Downloads being treated as trusted project instructions.

2. Inspect AGENTS.md and CLAUDE.md Files​

Before allowing an AI agent to work in a project, check for instruction files you didn't create.
Pay particular attention to:
  • AGENTS.md
  • CLAUDE.md
  • Unexpected configuration files inside .claude.
Don't automatically trust these files, even if they are inside a repository you've just cloned.
Read their contents and look for suspicious instructions, especially requests to:
  • Install unfamiliar npm packages.
  • Execute remote scripts.
  • Modify global configuration files.
  • Send tokens or credentials to external servers.
  • Disable security restrictions.

3. Check Your AI Agent Configuration​

If you use Codex, inspect its configuration file:
~/.codex/config.toml
Look for unfamiliar MCP server entries or configuration changes you didn't make.
If you use Claude Code, inspect:
.claude/settings.json
Pay particular attention to unexpected ANTHROPIC_BASE_URL settings or API endpoints.
An unfamiliar server or endpoint doesn't automatically mean your machine is compromised, but it deserves investigation.

4. Keep Approval Prompts and Sandboxing Enabled​

Don't disable security features just because an instruction file tells you to.
Keep approval requirements and sandbox restrictions enabled whenever possible.
Be especially suspicious of instructions asking the agent to:
  • Execute commands without approval.
  • Bypass sandbox restrictions.
  • Run scripts with elevated privileges.
  • Ignore security warnings.
These safeguards exist for a reason.

5. Rotate Credentials if You Find Evidence of Compromise​

If you discover a malicious instruction file or unauthorized configuration changes, don't simply delete the suspicious file and assume everything is safe.
Take additional precautions:
  1. Stop the affected AI agent.
  2. Investigate unauthorized configuration changes and processes.
  3. Remove malicious server entries and suspicious packages.
  4. Revoke and replace potentially exposed API keys and authentication tokens.
  5. Review your account activity and check for unauthorized access.
If you find function-color installed as part of this attack, treat the machine as potentially compromised and investigate it carefully.



💡 Final Thoughts​

This incident highlights a growing security challenge with AI-powered development tools.
The problem isn't necessarily that Codex or Claude Code has a traditional software vulnerability. It's that these agents are designed to follow instructions and perform tasks, sometimes with access to powerful system capabilities.
A malicious instruction file can exploit that trust.
The lesson is simple: Never give an AI agent unrestricted trust just because it appears to understand what it's doing.
Treat your AI coding agent like a powerful developer working on your machine. Give it only the permissions it needs, review its actions, and keep security restrictions enabled.
An AI agent can save you hours of work, but one bad instruction could cost you much more.



❓ Frequently Asked Questions​

----------------------

Can an AGENTS.md file execute malware by itself?​

No. It's a plain-text instruction file, not an executable program. However, an AI agent that reads it may follow malicious instructions that cause it to execute commands or install harmful software.

Is OpenAI Codex vulnerable to this attack?​

Forever Security demonstrated that a specially crafted instruction file could manipulate Codex under the tested conditions. The researchers attributed the attack to how agents handle trusted instructions and their working directories, rather than identifying a conventional Codex software vulnerability.

Can Claude Code also be affected?​

Yes. Forever Security demonstrated a separate attack using a malicious CLAUDE.md file that attempted to redirect API requests and expose authentication tokens.

Is it safe to use AI coding agents?​

Yes, provided you use appropriate security precautions. Work inside trusted project directories, inspect instruction files, keep approval prompts enabled, and avoid granting unnecessary permissions.

Should I delete AGENTS.md from every project?​

No. Legitimate projects use AGENTS.md to provide useful development instructions. The important thing is to verify that the file comes from a trusted source before allowing your agent to follow it.

📌 Share this article with developers who use Codex, Claude Code, or other AI coding agents. A simple security precaution could prevent a serious compromise.
83 0

Binance Hack: $6.3 Billion Security Breach

Reports of suspicious cryptocurrency transfers linked to Binance wallets have raised concerns about a potential multibillion-dollar security incident. One of the most alarming claims involves a wallet displayed on Arkham Intelligence with approximately $6.3 billion in digital assets.

But there's an important distinction:
A wallet holding $6.3 billion does not automatically mean Binance has been hacked or that the entire amount was stolen.

Blockchain transfers can involve internal wallet movements, exchange operations, asset redistribution, or legitimate transactions. Confirming a security breach requires more than identifying a large balance or an unusual transfer.
So, what would happen if a Binance hack of this magnitude were officially confirmed? Could the stolen cryptocurrency be recovered, and how seriously would it affect the broader crypto market?
Let's break down the possibilities.



🔍 Has Binance Really Been Hacked for $6.3 Billion?​

The reported $6.3 billion figure should be treated as an unverified claim, not a confirmed financial loss.
Arkham Intelligence is a blockchain analytics platform that allows users to examine cryptocurrency wallets, track transactions, and investigate relationships between blockchain addresses.
However, blockchain analytics alone cannot establish that a particular transaction was unauthorized.
Before describing the reported activity as a confirmed Binance hack, several questions need reliable answers:
  • Did Binance officially acknowledge a security breach?
  • Were the transactions unauthorized or part of normal exchange operations?
  • Who controls the wallets receiving the funds?
  • Were any assets actually stolen?
  • Have blockchain investigators independently verified the reported losses?
Until reliable evidence answers these questions, claims that Binance lost $5.84 billion should not be presented as established facts.



💰 What Happens If Billions in Cryptocurrency Are Stolen?​

A cryptocurrency exchange hack involving billions of dollars would create significant technical, financial, and operational challenges.
However, stealing cryptocurrency and successfully converting it into spendable money are two very different problems.

1. Stablecoin Issuers Could Freeze Some Stolen Assets​

If stolen funds include centralized stablecoins such as USDT or USDC, their issuers may have mechanisms to freeze specific blockchain addresses.
For example:
  • Tether (USDT): Can freeze supported USDT tokens associated with designated addresses.
  • Circle (USDC): Can block supported USDC addresses under applicable circumstances.
These actions depend on the issuer, blockchain, available evidence, and relevant legal or compliance procedures.
Freezing assets does not automatically return them to their original owners. Recovery may require additional investigation and legal action.
Also, not every cryptocurrency supports this functionality. Native assets such as Bitcoin cannot simply be frozen by a centralized token issuer.

2. Hackers Could Move Funds Across Multiple Blockchains​

An attacker might attempt to complicate an investigation by distributing stolen cryptocurrency across multiple wallets, exchanges, and blockchain networks.
Potential activities include:
  • Splitting large balances into smaller transactions.
  • Moving funds between different blockchain addresses.
  • Using cross-chain bridges to transfer assets between networks.
  • Swapping tokens through decentralized exchanges.
These activities can make investigations more complicated, but they do not necessarily make the funds untraceable.
Public blockchains maintain transaction records that investigators can analyze using specialized forensic tools.
Moving stolen cryptocurrency does not erase its transaction history.

3. Converting Billions Into Cash Would Be Extremely Difficult​

Even if attackers successfully transferred billions of dollars in cryptocurrency, converting those assets into traditional currency would present another major challenge.
Large transactions can attract attention from exchanges, blockchain monitoring companies, compliance teams, and law enforcement agencies.
Attackers may encounter:
  • Exchange account restrictions and identity verification requirements.
  • Wallet addresses flagged by blockchain analytics providers.
  • Frozen stablecoin balances.
  • Limited market liquidity for certain tokens.
  • Significant price slippage when attempting large asset sales.
For example, selling a massive quantity of a relatively illiquid token could push its market price down before the entire position is sold.
This means a wallet's displayed market value does not necessarily represent the amount someone could successfully cash out.



📉 Could a $6.3 Billion Binance Hack Crash the Crypto Market?​

A confirmed Binance security breach involving billions of dollars could seriously damage market confidence, particularly if customer assets were affected.
However, a market crash would not be guaranteed.
The impact would depend on several factors, including the actual losses, affected assets, Binance's financial response, and whether withdrawals or trading services remained operational.

Here are some possible scenarios:
ScenarioPotential Market Impact
Binance confirms a major security breachIncreased volatility and reduced investor confidence
Customer withdrawals are temporarily suspendedConcerns about exchange liquidity and asset accessibility
Stolen cryptocurrency enters the marketPotential selling pressure on affected assets
Stablecoin issuers freeze stolen tokensReduced ability to transfer or liquidate those specific assets
Binance demonstrates that customer funds remain protectedCould help limit uncertainty and restore confidence
These are hypothetical outcomes, not confirmed developments related to the reported incident.



🛡️ What Should Binance Users Do During a Security Scare?​

Whether a major exchange hack is confirmed or merely rumored, users should avoid making financial decisions based on viral social media posts alone.
More importantly, security incidents often create opportunities for phishing campaigns.
Scammers may impersonate exchange employees and publish fake compensation programs, emergency withdrawal pages, or wallet verification links.
To protect your cryptocurrency:
  1. Check official announcements: Visit Binance directly instead of trusting screenshots or forwarded messages.
  2. Enable two-factor authentication: Use an authenticator app or supported security key.
  3. Review account activity: Check recent logins, withdrawal addresses, and unfamiliar transactions.
  4. Avoid suspicious links: Never connect your wallet to an unfamiliar website claiming to recover stolen funds.
  5. Protect your recovery phrase: Never share your seed phrase or private keys, including with someone claiming to represent Binance.
  6. Review your custody strategy: Consider whether long-term holdings should remain on an exchange or in a self-custody wallet that you can securely manage.
⚠️ Remember: Moving cryptocurrency to self-custody introduces its own responsibilities. Losing your private keys or recovery phrase can permanently prevent you from accessing your assets.



🚨 Latest Binance Security Incident Update - October 30, 2026​

Subsequent reporting has provided important confirmation beyond the initial wallet alerts.
Binance has acknowledged a major security incident, estimating its impact at approximately $6.3 billion.
According to its preliminary investigation, a compromised DevOps engineer's laptop may have allowed an attacker to access a service container and initiate unauthorized withdrawals. Binance reported no evidence that wallet private keys had leaked.

Key developments include:
  • Approximately $3 billion in affected cryptocurrency has reportedly been frozen.
  • Tether froze more than $1.5 billion in USDT.
  • Circle froze more than $800 million in USDC.
  • Binance temporarily suspended withdrawals while conducting security checks.
  • The exchange stated that customer funds remain safe and committed to covering hacking losses.
These developments mean the incident is no longer based solely on an unverified Arkham wallet balance. However, the final recoverable amount, precise attack sequence, and ultimate financial impact remain subject to investigation.



Final Thoughts: A Major Test of Crypto Exchange Security​

The Binance incident highlights a fundamental challenge for centralized cryptocurrency exchanges: even sophisticated security infrastructure can be vulnerable when attackers compromise operational systems.
Freezing billions in stolen cryptocurrency demonstrates how blockchain transparency and coordinated action can help limit financial damage.
But the bigger question is whether Binance can restore normal operations, replace affected assets, and maintain customer confidence.
For cryptocurrency investors, the lesson is clear: exchange security, transparency, and responsible asset custody matter just as much as market prices.
Untitled.webp
Sources:
77 1

MarTech: 20 Systems Working 24/7

Watch this video three times.
And each time… focus on just one arrow. 👀

🟠 The long orange arrow? ⏩
That's an order that just came in from a Meta ad…
It went to Shopify ⏩ Got confirmed on WhatsApp ⏩ Went to the shipping company ⏩
Then went back to Meta and said:
"This person actually made a purchase… Find me more people like them."

🟣 The purple arrow?
That's a customer who sent a message at 2 AM:
"How much is it?"
The AI read the message, understood it was a pricing question, replied, and handed the conversation over to WhatsApp to complete the order.
And nobody had to wake up.

🔵 The blue arrow?
That's the shipment.
The order was created ⏩ Handed over to the courier ⏩ Out for delivery…
And the customer gets an update at every step through WhatsApp, without anyone having to contact them manually.

✅ And below every box… there's a checklist that updates itself.
✓ Done
⟳ In progress
○ Waiting its turn
20 systems.
Dozens of arrows.
And not a single person manually moving a number from one place to another.

That's what MarTech is.
Not just a tool… a machine.
Everything is connected ⏩ And running automatically, 24 hours a day.

Now take a look at your own business:
How many people on your team spend their time copying orders from WhatsApp into Excel?
How many messages didn't get answered until morning… after the customer had already bought from someone else?
And how many times did you only find out your actual profit from your accountant at the end of the month?
A study of 2,241 companies found that the average customer response time was 42 hours.
This machine responds in seconds.
Register & Login Faster
Forgot your password?
Forum Statistics
Threads
1,190
Messages
1,198
Members
18
Latest Member
stromasys
Back
Top