BitsLab Deep Production: Nanobot User Security Practice Guide
When an AI Agent possesses system-level capabilities such as shell execution, file read/write, network requests, and scheduled tasks, it is no longer just a "chatbot"—it becomes an operator with real permissions. This means that a command induced by prompt injection could delete critical data; a skill poisoned by the supply chain could quietly leak credentials; an unverified business operation could cause irreversible losses.
Traditional security solutions often fall into two extremes: either completely relying on the AI's own "judgment" for self-restraint (which can easily be bypassed by carefully crafted prompts), or piling up a large number of rigid rules to lock down the Agent (thereby losing the core value of the Agent).
BitsLab's in-depth guide chooses a third path: dividing security responsibilities based on "who checks," allowing three types of roles to each play their part------
Ordinary Users: As the final line of defense, responsible for key decisions and regular reviews. We provide considerations to reduce cognitive load.
The Agent itself: Consciously adhering to behavioral norms and audit processes during runtime. We provide Skills to inject security knowledge into the Agent's context.
Deterministic Scripts: Mechanically and faithfully executing checks, unaffected by prompt injection. We provide Scripts that cover common known dangerous patterns.
No single checker is omnipotent. Scripts cannot understand semantics, Agents may be deceived, and humans can experience fatigue. But the combination of the three ensures both convenience for daily use and prevention of high-risk operations.
1. Ordinary Users (Considerations)
Users are the final line of defense in the security system and the highest authority. Below are security matters that users need to pay attention to and execute personally.
a) API Key Management
Configuration files should be set with appropriate permissions to prevent unauthorized viewing:
Never submit API keys to code repositories!
b) Channel Access Control (Very Critical!)
- Be sure to set a whitelist (
allowFrom) for each communication channel; otherwise, anyone can chat with your Agent:
⚠️ In the new version, an empty allowFrom means denying all access. If you want to open it, you must explicitly write ["*"], but this is not recommended.
c) Do not run with root privileges
- It is recommended to create a dedicated user to run the Agent to avoid excessive permissions:
d) Avoid using email channels
- Email protocols are complex and relatively risky. Our BitsLab team has discovered and confirmed a critical-level vulnerability related to email. Below is the project party's response; we still have several questions pending confirmation from the project party, so use email-related features with caution.
e) It is recommended to deploy in Docker
- It is recommended to deploy the nanobot in a Docker container, isolating it from the daily usage environment to avoid security risks caused by permission or environment mixing.
2. Tool Installation Steps
Below are the tools independently developed by BitsLab, with specific links: https://github.com/BitsLabSec/nanobot-security-guide
① Download the nanobot-security-guide project to the nanobot skills directory, or send a command to the agent to run the official installation script:
curl -sSL https://raw.githubusercontent.com/BitsLabSec/nanobot-security-guide/main/install.sh | bash
↓
② After installation, read the security practice guidelines in the project (such as README.md, SKILL.md) to understand core security configurations and operational recommendations.
↓
③ Send a command to your Agent: "Please carefully read this security guide and assess whether it is reliable?"
↓
④ Manually configure allowlist.txt and runtime-baseline.txt in the policy directory according to the document prompts to narrow permissions, set security baselines, and other measures.
↓
⑤ You can use the scripts in the scripts/ directory for security inspections and testing to ensure environmental safety.
3. Tool Principles
SKILL.md
The intent review based on cognitive awakening breaks through the blind spot of traditional AI passively receiving commands. It incorporates a mandatory "Self-Wakeup" thought chain mechanism, requiring the AI to first awaken an independent security review persona in the background before processing any user requests. By analyzing user intent contextually and independently, it actively identifies and intercepts potential high-risk threats, upgrading from "mechanical execution" to "intelligent firewall." When malicious commands (such as reverse shell, sensitive file theft, large-scale deletion, etc.) are detected, the tool executes a standardized hard interception protocol (outputting [Bitslab nanobot-sec skills detected sensitive operations..., intercepted] warning).
Malicious Command Execution Interception (Shell & Cron Protection)
Acts as a "zero trust" gateway when the Agent executes system-level commands. The defense line directly blocks various destructive operations and dangerous payloads (such as rm -rf malicious deletions, permission tampering, reverse shells, etc.). At the same time, the tool has built-in deep runtime inspection capabilities that can actively scan and clean persistent backdoors and malicious execution features in system processes and Cron scheduled tasks, ensuring absolute safety of the local environment.
Sensitive Data Theft Blocking (File Access Verification)
Implements strict physical isolation for core assets' read and write operations. The system has preset stringent file verification rules, prohibiting the AI from unauthorized reading of sensitive files such as config.json, .env, etc., which contain API keys and core configurations, and transmitting them externally. In addition, the security engine will also audit file read logs in real-time (such as the call sequence of the read_file tool), completely cutting off the possibility of credential leakage and data exfiltration from the source.
MCP Skill Security Audit
For MCP-type skills, the tool will automatically audit their contextual interactions and data processing logic, detecting risks such as sensitive information leakage, unauthorized access, and dangerous command injection, and comparing them with security baselines and whitelists.
New Skill Download and Automatic Security Scanning
When downloading new skills, the tool will automatically perform static code analysis using audit scripts, compare security baselines and whitelists, and detect sensitive information and dangerous commands, ensuring that skills are loaded only after confirming their safety and compliance.
Tamper-Proof Hash Baseline Verification
To ensure absolute zero trust for the underlying system assets, the protection shield will continuously establish and maintain SHA256 encrypted signature baselines for key configuration files and memory nodes. The nightly inspection engine will automatically verify the temporal changes of each file hash, capable of capturing any unauthorized tampering or privilege escalation in milliseconds, completely cutting off local backdoor implantation and "poisoning" risks from the physical storage layer.
Automated Disaster Recovery Backup Snapshot Rotation
Given that the local Agent has extremely high read and write permissions on the file system, the system has built-in the highest level of automated disaster recovery mechanisms. The protection engine will automatically trigger a full sandbox-level archive of the active workspace every night, generating a security snapshot mechanism with a maximum retention of 7 days (automatically rotating). Even in extreme cases of accidental damage or deletion, it can achieve lossless one-click rollback of the development environment, maximizing the continuity and resilience of local digital assets.
4. Disclaimer
This guide serves only as a reference for security practices and does not constitute any form of security guarantee.
No Absolute Security: All measures described in this guide (including deterministic scripts, Agent Skills, and user considerations) are "best effort" protections and cannot cover all attack vectors. AI Agent security is a rapidly evolving field, and new attack methods may emerge at any time.
User Responsibility: Users deploying and using Nanobot should assess the security risks of their operating environment and adjust the recommendations in this guide according to actual scenarios. Any losses resulting from incorrect configuration, failure to update in a timely manner, or ignoring security warnings are the user's responsibility.
Not a Substitute for Professional Security Audits: This guide cannot replace professional security audits, penetration testing, or compliance assessments. For scenarios involving sensitive data, financial assets, or critical infrastructure, it is strongly recommended to hire a professional security team for independent evaluation.
Third-Party Dependencies: The security of third-party libraries, API services, and platforms (such as Telegram, WhatsApp, LLM providers, etc.) that Nanobot relies on is outside the control of this guide. Users should pay attention to the security announcements of relevant dependencies and update them in a timely manner.
Scope of Liability: The maintainers and contributors of the Nanobot project are not liable for any direct, indirect, incidental, or consequential damages arising from the use of this guide or the Nanobot software.
Using this software indicates that you understand and accept the above risks.
About BitsLab
BitsLab is an AI security company focused on digital asset security, dedicated to providing integrated solutions of "audit services + AI security engine + security tools" for the emerging Web3 ecosystem, helping project parties and end users build, trade, and use digital assets more securely on-chain.
In the overall security solution, BitsLab forms a complete AI security system with BitsLab AI Scanner + BitsLab Safe: BitsLab Safe, as an AI-based Web3 security product, provides enterprise-level protection, simulating transactions in real-time, identifying scams and malicious contracts, and relying on BitsLab's agentic security stack to protect x402 payments and various AI Agent's on-chain operations; BitsLab AI Scanner, based on vulnerability and threat data engines, performs intelligent audits and risk detection, significantly improving efficiency and reducing false positives.
BitsLab has three sub-brands: MoveBit, ScaleBit, and TonBit, continuing to deepen its efforts in emerging ecosystems such as Sui, Aptos, TON, Solana, Linea, BNB Chain, Soneium, and Starknet, providing professional auditing and vulnerability discovery services to help projects maintain the security and controllability of core infrastructure during rapid iterations. The BitsLab team consists of several top vulnerability research experts who have won international CTF awards multiple times and have discovered and disclosed critical vulnerabilities in well-known projects such as TON, Aptos, Sui, Nervos, OKX, and Cosmos, promoting ecological security upgrades.
You may also like

Morning Report | BitMine increased its holdings by 126,971 ETH last week; trader Eugene announced his exit from the crypto market

Wang Chuan: How can one not feel anxious after the neighbor Old Wang made thirty times profit by investing in storage stocks? (Seven) - A quarter-century cycle

Cryptocurrency CEXs are flocking to sell US stocks, and traditional brokerages are facing an "uninvited guest."

$75 billion in foreign capital has fled, and South Korean retail investors have absorbed it all using leverage

Japan’s Three Megabanks Plan Joint Stablecoin Issuance in Fiscal 2026
MUFG, SMBC, and Mizuho reportedly plan to jointly issue fiat-pegged stablecoins in fiscal 2026, signaling Japan’s growing push into bank-led digital payment infrastructure.

Humanity Discloses H Token Dual-Chain Attack Details, With Losses on Ethereum and BSC Exceeding $36 Million
Humanity said the H token attack across Ethereum and BSC caused more than $36 million in losses after leaked ProxyAdmin keys enabled malicious contract upgrades and token minting.

White House Discusses CLARITY Act With Law Enforcement Ahead of Senate Vote
The White House discussed the CLARITY Act with law enforcement ahead of a Senate vote, focusing on illicit finance risks and developer protections.

Bitcoin Trading Guide 2026: Strategies for Experienced Traders

What Is XAUT and PAXG? Why Tokenized Gold Is Booming in 2026

Will the SpaceX IPO Hurt Bitcoin? Here's What Traders Are Watching

Foreign selling in the South Korean stock market accelerates, with cumulative net sales reportedly reaching $75 billion this year
On June 9, The Kobeissi Letter, citing Goldman Sachs data, reported that global investors are selling South Korean stocks at an unusually rapid pace. In the latest trading session, foreign investors sold about $801 million worth of Kospi constituent stocks again; total foreign outflows last week reached about $10 billion, and the market has been in net foreign selling on nearly every trading day over the past month. According to the data cited in the report, foreign investors have sold about $75 billion worth of South Korean stocks so far this year. Meanwhile, South Korean retail and institutional investors together recorded roughly $69 billion in net buying over the same period, suggesting that the market’s main buying support has come from domestic capital rather than returning overseas funds. The information currently disclosed still mainly comes from The Kobeissi Letter’s retelling and Goldman Sachs data summaries, while public details on the statistical period and the specific definition of “selling” remain relatively limited.

Fortune Warns of Strategy’s Financing Structure Risks as Bitcoin Premium Narrows
Fortune warned that Strategy’s Bitcoin treasury model faces growing financing risks as MSTR’s net asset premium narrows and preferred stock dividend pressure increases.

Ferrari Challenge Le Mans: Carl Moon to Dominate in WEEX Livery

Sahara AI Responds to SAHARA’s Sharp Drop: No Contract or Product Security Issues Found, Internal Investigation Underway
Sahara AI responded to SAHARA’s 60% price drop, saying no token contract or product security issues have been found and an internal investigation is underway.

WEEX Deposit/Withdrawal Dynamic Island: Your Asset Status, Always in Sight

Scaling Crypto Derivatives: The Digital Asset Infrastructure Behind High-Volume Trading
In the fast-moving digital asset ecosystem, derivatives platforms face an extreme architectural test. High-leverage futures markets demand more than just standard security—they require absolute operational precision, zero-latency matching engines, and ironclad structural scalability, all while navigating intense market volatility.
As global platforms scale to meet these demands, the industry is shifting away from rigid, monolithic setups toward a more agile, "decoupled" infrastructure philosophy.
The Blueprint for High-Volume Copy TradingFor elite global exchanges like WEEX (founded in 2018), this architectural choice becomes critical when scaling high-volume retail features like social copy trading. When thousands of users automatically mirror the real-time strategies of elite traders simultaneously, it triggers sudden, monumental spikes in concurrent transactional volume.
To prevent execution latency or settlement bottlenecks during these peak volatility events, a platform's primary engine must remain entirely dedicated to risk management, copy-trade synchronization, and order matching.
The Architectural Rule: New-generation platforms must separate front-end user execution engines from heavy backend infrastructural overhead to eliminate operational friction.
By separating these layers, platforms can maintain complete sovereignty over their trading environments and user experiences while strategically aligning with institutional-grade infrastructure ecosystems. This strategic framework allows modern exchanges to leverage advanced Digital Asset Custody infrastructure such as Cobo’s behind the scenes, ensuring that backend wallet management scales elastically alongside trading spikes.
Capitalizing on Market Momentum and 400× LeverageIn a derivatives arena where platforms offer up to 400× leverage on perpetual contracts, capital efficiency and market agility are core business metrics. To capture market momentum, an exchange needs the ability to rapidly expand its asset offerings, supporting everything from legacy crypto assets to sudden, trending altcoins across a massive library of trading pairs.
Adopting a flexible, scalable Wallet-as-a-Service (WaaS) solution such as Cobo’s could completely rewrite the development timeline for high-growth exchanges. Instead of spending months of engineering capital building out custom backend wallet architectures for every new blockchain network, platforms can deploy localized infrastructure in days.
This agility allows platforms to instantly scale their listings to over a thousand trading pairs without compromising security or delaying time-to-market. It mirrors the exact operational advantages seen during high-velocity market events, similar to how advanced wallet infrastructure empowers platforms during sudden asset surges; allowing exchanges to pass that speed and liquidity directly to their global user base.
A Mature Foundation for GrowthThe synergy between trusted infrastructure ecosystems and global trading platforms represents the natural evolution of a maturing crypto market. As WEEX continues to scale its global spot and derivatives offerings for over 6 million users, adopting robust backend paradigms proves that platforms no longer have to compromise between cutting-edge trading velocity and uncompromised structural security.

Get Paid to Onboard? Try WEEX’s New Homepage with Rewards for Registration, Deposit & Trade

WEEX Custom Layout: Build Your Perfect Trading Workspace in Seconds
Morning Report | BitMine increased its holdings by 126,971 ETH last week; trader Eugene announced his exit from the crypto market
Wang Chuan: How can one not feel anxious after the neighbor Old Wang made thirty times profit by investing in storage stocks? (Seven) - A quarter-century cycle
Cryptocurrency CEXs are flocking to sell US stocks, and traditional brokerages are facing an "uninvited guest."
$75 billion in foreign capital has fled, and South Korean retail investors have absorbed it all using leverage
Japan’s Three Megabanks Plan Joint Stablecoin Issuance in Fiscal 2026
MUFG, SMBC, and Mizuho reportedly plan to jointly issue fiat-pegged stablecoins in fiscal 2026, signaling Japan’s growing push into bank-led digital payment infrastructure.
Humanity Discloses H Token Dual-Chain Attack Details, With Losses on Ethereum and BSC Exceeding $36 Million
Humanity said the H token attack across Ethereum and BSC caused more than $36 million in losses after leaked ProxyAdmin keys enabled malicious contract upgrades and token minting.




