← Back to Blog
Security monitoring dashboard protecting crypto portfolio
SecurityMay 2, 20267 min read

Portfolio Guardian: 24/7 Rug-Pull Detection for BSC Traders

Rug pulls are the single largest source of losses for BSC traders. According to on-chain analytics, hundreds of tokens are rugged every week on BNB Smart Chain, draining millions of dollars from unsuspecting holders. The attacks are fast — often completed in a single transaction — and by the time most traders realize what happened, their tokens are worthless. FoxD’s Portfolio Guardian is built to detect these threats in real time and, when configured, automatically exit your position before the damage is done.

Understanding Rug Pulls on BSC

A rug pull is any mechanism through which a token’s creators or insiders extract value at the expense of holders. On BSC, rug pulls take several distinct forms, each with different technical signatures that Portfolio Guardian monitors for.

Liquidity Removal

The most common type of rug pull. A project creates a token, adds liquidity to PancakeSwap, waits for buyers to push the price up, then removes all liquidity from the pool. Holders are left with tokens they cannot sell because there is no remaining liquidity to swap against. This can happen in a single transaction if the LP tokens are not locked.

Ownership Exploits

Many BSC tokens have an owner address with privileged functions: minting unlimited tokens, pausing transfers, blacklisting addresses, or modifying tax rates to 100%. If ownership is not renounced or locked behind a timelock, the owner can execute these functions at any time. A common pattern is an owner minting a massive supply and dumping it onto the open market, crashing the price to near zero.

Honeypots

A honeypot token allows buying but blocks selling through hidden contract logic. The code might include a whitelist that only permits the deployer to sell, or it might use a transfer function that silently reverts for non-whitelisted addresses. Traders buy in, see the price rising, and only discover they cannot sell when they attempt to exit. Some sophisticated honeypots even allow small sells initially, only activating the block at higher amounts.

Tax Manipulation

Some tokens launch with reasonable buy/sell taxes (2 – 5%) to appear legitimate, then the owner modifies the tax to 50%, 80%, or even 99% once sufficient buyers are in. Holders technically can sell, but the tax makes it economically equivalent to a rug pull.

How Portfolio Guardian Monitors Your Positions

Portfolio Guardian runs as a continuous background process on every token in your FoxD portfolio. It does not require manual activation for individual tokens — the moment you hold a position, Guardian begins monitoring. Here is what it watches:

  • Liquidity pool depth: Guardian tracks the total liquidity in the primary trading pair. If liquidity drops below a configurable threshold (absolute value or percentage change), it triggers an alert. A sudden 50%+ liquidity reduction is a critical warning sign.
  • LP token lock status: Guardian checks whether the project’s LP tokens are locked in a recognized locker contract (PinkSale, Mudra, Team.Finance, etc.) and monitors the lock expiration. If LP tokens are unlocked or approaching unlock, the risk level increases.
  • Contract ownership: Guardian inspects the owner address and tracks any ownership-related transactions: ownership transfers, calls to privileged functions, or deployment of proxy upgrades. A renounced ownership (owner set to 0x0) is the safest state.
  • Tax rate changes: Guardian monitors calls to functions that modify buy/sell tax rates. Any increase triggers an alert. An increase above 20% triggers a critical alert.
  • Sell simulation: Guardian periodically simulates a sell transaction to verify that selling is still possible and that the effective tax matches expectations. If the simulation fails or the tax has changed, you are immediately notified.
  • Holder concentration: Guardian monitors the top holder distribution. If a single non-contract address accumulates a disproportionate share of supply (indicating a potential dump setup), the risk score adjusts accordingly.
  • Developer wallet activity: Guardian identifies the deployer and initial funding wallets and tracks their on-chain activity. Large token transfers from these wallets to DEX routers are immediate red flags.

Alert System

Portfolio Guardian uses a tiered alert system that categorizes threats by severity:

  • Info (blue): Minor changes that are worth noting but not immediately dangerous. Examples: small LP unlock approaching, minor holder redistribution.
  • Warning (yellow): Moderate risk indicators that warrant attention. Examples: tax rate increased from 3% to 8%, LP liquidity dropped 20%, ownership transferred to a new address.
  • Critical (red): High-probability rug indicators requiring immediate action. Examples: LP liquidity dropped 60%+, sell simulation failed (possible honeypot activation), tax set above 30%, deployer wallet moving tokens to DEX.

Alerts are delivered instantly via Telegram push notification. Each alert includes the token name, the specific threat detected, the current risk score, and a one-tap action button to sell the position immediately if you choose.

Auto-Exit Protection

For traders who want fully automated protection, Portfolio Guardian offers auto-exit mode. When enabled, Guardian will automatically sell your position when a critical-level threat is detected, without waiting for your manual confirmation. This is especially valuable for:

  • Trading while sleeping or away from your device.
  • Holding multiple positions that cannot all be monitored manually.
  • Fast-moving rug pulls that complete within seconds of the first on-chain signal.

Auto-exit can be configured globally (all positions) or per-token. You can also set conditions — for example, only auto-exit if the unrealized loss exceeds a certain threshold, preventing false-positive exits on tokens with temporary volatility.

Real-World Detection Scenarios

Scenario: Liquidity Drain

A token launches with 50 BNB in liquidity. Over two days, the price rises 5x as buyers accumulate. Then, the deployer removes 45 BNB of liquidity in a single transaction. Guardian detects the removeLiquidity call on the PancakeSwap router, calculates that 90% of pool depth has been removed, and fires a critical alert. If auto-exit is enabled, Guardian submits a sell against the remaining 5 BNB of liquidity before other holders react, potentially recovering a portion of the investment.

Scenario: Honeypot Activation

A token initially allows normal buying and selling. After several hours of organic trading, the owner calls a contract function that adds a sell blacklist. Guardian’s periodic sell simulation detects that the simulated sell now reverts, immediately classifying the token as a honeypot and issuing a critical alert. Since selling is blocked, auto-exit cannot execute in this case — but the early warning prevents the trader from adding to the position.

Scenario: Tax Manipulation

A token launches with a 3% buy/sell tax. After building a community, the owner modifies the sell tax to 40%. Guardian detects the setFee function call, compares the new tax to the previous value, and issues a critical alert. Auto-exit sells the position before most holders even notice the change, absorbing the 40% tax but preserving 60% of the position value rather than the near-total loss that typically follows.

Configuring Portfolio Guardian

Portfolio Guardian is enabled by default for all FoxD users. To customize your settings:

  • Open @foxd_trade_bot and navigate to Settings.
  • Select “Portfolio Guardian.”
  • Toggle auto-exit on or off (global or per-token).
  • Set alert sensitivity (low, medium, high) to control the threshold for each alert tier.
  • Configure minimum liquidity thresholds for critical alerts.

Limitations and Best Practices

Portfolio Guardian significantly reduces your exposure to rug pulls, but no automated system can catch every attack. Some important caveats:

  • Speed of execution: If a rug pull removes 100% of liquidity in a single block, auto-exit may not execute fast enough to recover funds. Guardian is most effective when there is at least a brief window between the first warning sign and total liquidity removal.
  • Novel attack vectors: Guardian’s detection is based on known patterns. Entirely new exploit mechanisms may not be caught until the detection engine is updated. FoxD continuously updates Guardian’s detection rules as new attack types emerge.
  • False positives: Legitimate projects sometimes trigger warnings — for example, a team reallocating LP tokens or adjusting fees for a planned migration. Review critical alerts before assuming the worst, especially for established projects.

Portfolio Guardian is a safety net, not a substitute for research. Always evaluate a token’s contract, team, liquidity lock, and community before investing. Guardian protects you when things go wrong despite your due diligence.

Trade BSC with a Safety Net

Portfolio Guardian monitors every position for rug pulls, honeypots, and liquidity drains — so you can trade BSC with confidence.

Launch Terminal Telegram Bot
Portfolio Guardian: 24/7 Rug-Pull Detection for BSC Traders | FoxD Blog