Security Guide
Open Security

Install the Security agent

A small read-only file that watches your database and files — catches swaps before customers see them.

15 minutes Intermediate
Before you start, you need
  • A verified website and your approved addresses already added.
  • Your hosting panel login (cPanel, DirectAdmin, hPanel…).
  • About 15 minutes. WordPress sites: about 5 minutes.

The Security agent is one small file, vannibel-guard.php, that you upload to your website. It is the strongest wallet protection because it looks inside your website:

  • It reads your wallet addresses straight from your database — so a swap is caught before any customer sees it, even on pages that need a login.
  • It notices new or changed files, including hidden hacker tools, and new admin accounts.
  • It only reads and reports. It cannot change your site and cannot receive commands. Its reports are signed with a secret key so nobody can fake them.

Step 1 — Download your agent file

1

Open the Security agent guide and download

In Security, open your website → Protections → Security agent → Set up. Click Download vannibel-guard.php and enter your password.

1 Download your personal agent file. 2 After uploading it, click Check now. The green box shows the latest report.
1 Download your personal agent file. 2 After uploading it, click Check now. The green box shows the latest report.
Don’t share this file or post it online. It contains your website’s secret key, which signs its reports. Treat it like a password.
2

Upload it to your website’s main folder

Open File Manager in your hosting panel, go to your website’s main folder and click Upload:

  • cPanel: public_html
  • DirectAdmin / hPanel: domains/yoursite.com/public_html
File Manager
Home › public_html
.well-known
assets
index.php
topup.php
1 vannibel-guard.php uploaded just now
1 vannibel-guard.php sits next to your index.php. Simplified drawing — your screen may look a little different.
WordPress? You’re almost done — the agent reads your database settings from wp-config.php by itself and checks your options, published pages and administrator accounts. Skip to Step 4.

Step 2 — Find where your wallet addresses are stored

For custom websites, the agent needs to know which table in your database holds your wallet addresses. The easiest way to find it is to search for one of your addresses in phpMyAdmin.

1

Open phpMyAdmin and pick your website’s database

cPanel: Databases → phpMyAdmin. DirectAdmin: Account Manager → MySQL Management → phpMyAdmin. Click your website’s database in the left column.

2

Search for your address

phpMyAdmin
Server: localhost › Database: shop_db
StructureSQL1SearchExport
2
TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
3
the exact phrase as substring
Select all · admin · orders · settings · users · wallet
Go
1 Click Search at the top. 2 Paste one of your real wallet addresses. 3 Choose “the exact phrase as substring”, click Select all under the tables, then Go. Simplified drawing — your screen may look a little different.
3

Note the table name

phpMyAdmin — Search results
Database: shop_db
Search results for “TR7NHqje…”:
11 match in table wallet  Browse
idBITCOINUsdt TRC20ETHEREUM
1bc1qk3…5mzTR7NHq…j6t0x742d…f44e
1 The table that contains your address — in this example wallet. Click Browse to see it. Here each coin has its own column, all in one row. Simplified drawing — your screen may look a little different.
Tip: Addresses spread over several tables? You can list more than one query — see Step 3.

Step 3 — Create a read-only database user

The agent needs to log in to your database, but it should only be able to read. That way, even if someone reads the agent file, they cannot change anything. Never use your website’s main database user in the agent file.

1

Create the user

cPanel: Databases → MySQL® Databases, scroll to Add New User. Username: guard. Click Password Generator or type a long password using only letters and numbers. Write the password down. Click Create User.

2

Give it access to your database — SELECT only

Under Add User To Database, choose the new user (cPanel adds your account name in front, for example shopuser_guard) and your website’s database. Click Add. On the next page tick only SELECT, then Make Changes.

MySQL® Databases — Manage User Privileges
User: shopuser_guard · Database: shopuser_shop
ALL PRIVILEGES
ALTER
CREATE
DELETE
DROP
INSERT
1 SELECT
UPDATE
Make Changes
1 Tick only SELECT. Everything else stays empty. Simplified drawing — your screen may look a little different.

DirectAdmin: MySQL Management → open your database → Create new database user (or Modify privileges for an existing one) and leave only select ticked.

Step 4 — Fill in the agent’s settings

In File Manager, right-click vannibel-guard.php → Edit. Near the top you’ll find a part called Settings you may change. Change only two lines: 'db' and 'address_queries'.

Example — your names will be different
/* ───── Settings you may change ───── */
$VG = array(
    // Folder to watch (default: the folder this file is in).
    'root' => __DIR__,
    // Folders to skip (relative to root). Caches change all the time.
    'skip' => array('.git', 'node_modules', 'cache', 'wp-content/cache', 'wp-content/upgrade', 'tmp', 'logs', 'storage/framework', 'storage/logs'),
    // Database (use a READ-ONLY user).
    'db' => array('host' => 'localhost', 'name' => 'shopuser_shop', 'user' => 'shopuser_guard', 'pass' => 'YOUR-GUARD-PASSWORD', 'port' => 3306),
    // SELECT queries that return where your wallet addresses are stored. Only SELECT is allowed.
    'address_queries' => array("SELECT * FROM wallet"),
    // SELECT query returning admin usernames.
    'admin_query' => '',
    // Also look for wallet addresses written inside code files (.php .js .html).
    'scan_code_for_addresses' => true,
    'max_files' => 20000,
);
/* ───── End of settings ───── */
'name'
Your website’s database name, exactly as shown in MySQL® Databases (with the account prefix).
'user' and 'pass'
The read-only user you created in Step 3 and its password.
'address_queries'
Which table to read. SELECT * FROM wallet reads the whole wallet table — the agent picks out anything that looks like a wallet address. Several tables? array("SELECT * FROM wallet", "SELECT value FROM settings WHERE name LIKE '%address%'")
'admin_query' (optional)
A query that lists your admin usernames, for example SELECT username FROM admin. Vannibel then rings if a new admin appears.
Common mistake: Each setting must appear only once. If you add a new 'address_queries' line, delete the old empty one — otherwise PHP uses the last one and your query is ignored (the agent then reports “0 addresses”).

Click Save Changes.

Step 5 — Check now

Back in Vannibel, click Check now on the Security agent. Within a few seconds the green box shows the report, for example:

What you should see
Report received · 3 addresses in database/files · 192 files watched · checked by Vannibel every 5 min
It worked if: the number of addresses matches what is in your wallet table, and no alarm rings (because all of them are approved). If an alarm rings, an address in your database isn’t approved yet — add it.

By itself, Vannibel asks your agent for a report every few minutes. Add a cron job on your hosting so your server also sends a report every 2 minutes. A changed wallet address then rings your phone within about 2 minutes.

cPanel: Advanced → Cron Jobs. DirectAdmin: Advanced Features → Cron Jobs. Add a new cron job:

Cron Jobs — Add New Cron Job
cPanel › Cron Jobs
1*/2
*
*
*
*
2
/usr/local/bin/php /home/shopuser/public_html/vannibel-guard.php >/dev/null 2>&1
Add New Cron Job
1 */2 = every 2 minutes. 2 The command, with your username and folder. Simplified drawing — your screen may look a little different.
Command — cPanel (replace USERNAME)
/usr/local/bin/php /home/USERNAME/public_html/vannibel-guard.php >/dev/null 2>&1
Command — DirectAdmin / hPanel
/usr/local/bin/php /home/USERNAME/domains/yoursite.com/public_html/vannibel-guard.php >/dev/null 2>&1

Your username is shown in your hosting panel (cPanel: right-hand side under General Information → Current User).

Is it working? After 2–3 minutes, the agent status in Vannibel says “your server reports by itself (cron, last 10:42)”. If it still says “checked by Vannibel every … min — add the cron job”, the cron isn’t running yet. To see why, temporarily change the end of the command to > /home/USERNAME/guard.log 2>&1, wait 2 minutes, and open guard.log in File Manager. It should say Vannibel Security: report sent (HTTP 200).

Test it

  1. Copy your real BTC address somewhere safe (Notepad).
  2. In phpMyAdmin, Edit the row and replace it with a complete different address, for example 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa. Click Go.
  3. Wait — don’t click anything in Vannibel. Within about 2 minutes (with the cron job) your phone rings: “Unknown wallet address…” and “Your wallet address was changed or removed…”.
  4. Put your real address back right away and answer the alarms with It was me.
Careful: Keep the test short — while the test address is in your database, real customers would see it.

If something goes wrong

The status saysMeaning and fix
“No database settings: only files are checked”The 'db' line is still empty. Fill it in (Step 4).
“Access denied for user … (1045)”Wrong username or password. Copy the username exactly from Current Users, set a fresh letters-and-numbers password, and put it in the file.
“Access denied … to database (1044)”The user isn’t added to the database. Use Add User To Database and tick SELECT.
“0 addresses in database/files”Wrong table name, or 'address_queries' appears twice in the file.
“Address query 1 failed or is not a SELECT”A typo in the query or table name. Table names are case-sensitive on most servers.
“The report signature is wrong”The file belongs to another of your websites, or something outside the Settings part was changed. Download the file again for this website and change only the Settings part.
Ticks are saved on this device only, so you can see your progress in the menu.
Stuck? Check Troubleshooting, or send this page’s link to your developer — the guides are public, so they can open them without your password.