EN
  • English
  • Русский
  • ქართულიsoon
  • Українськаsoon
  • Shqipsoon
  • Azərbaycancasoon
  • Türkçesoon
Get in touch
Crypto exchangersCrypto securityLaws & compliance

Bitcoin ATM Security: CAS Server, Kiosk Network and Wallet

Bitcoin ATM security: update CAS, put the admin panel and kiosks behind VPN, audit users and addresses, cap the hot wallet — 12 steps with commands.

Читать на русском →

On this page

Whoever takes over the crypto ATM management server controls every kiosk and every wallet at once: in 2022 and 2023 this is how attackers diverted customers' coins and drained hot wallets at General Bytes operators. After these 12 steps, the admin panel and the kiosk connections are not visible from the internet, there are no extra users, terminals or foreign addresses in the settings, a server breach costs you no more than one day's turnover, and you learn about a planted file within minutes. The command examples are for the General Bytes CAS management server on Ubuntu; for other manufacturers the steps are the same, only the ports and menu names differ.

Plan

Step What we do Who Time
1 Build an inventory of servers, kiosks, wallets, keys and users owner + admin 30 min
2 Update CAS and the server OS admin 30–60 min
3 Put the admin panel and kiosk connections behind VPN admin 1–2 h
4 Match the kiosks in CAS against the inventory, delete extras owner 20 min
5 Review users, permissions and two-factor login owner 30 min
6 Check the addresses in the crypto settings owner 20 min
7 Cap the hot wallet and restrict exchange API key permissions owner 30 min
8 Search the logs for customers' private keys admin 15 min
9 Isolate each kiosk's network at the venue admin 1 h per kiosk
10 Set up alerts and a server backup admin 1 h
11 Test the server from the outside admin 10 min
12 Repeat the checks monthly using the checklist owner 30 min

How a crypto ATM network is built

Kiosk (PC, bill acceptor, scanner, camera) ──VPN──► CAS server (admin panel, rates, log) ──► hot wallet / exchange (API keys)
        └── kiosk router or LTE modem

Whoever takes over the CAS server controls every kiosk and wallet at once. That is why steps 2–8 are about the server and step 9 is about the kiosk.

What the real General Bytes breaches showed

August 2022. The attacker scanned Digital Ocean cloud address ranges for CAS servers exposed to the internet on ports 7777 and 443. Through a vulnerability in the initial setup page (present in the code since version 20201208), he created his own administrator, organization and terminal, renamed the default administrator to "gb" and put his own wallet into the sell settings and the "Invalid Payment Address" field. Two-way kiosks started forwarding customers' coins to him. The fixes are patches 20220531.38 and 20220725.22.

March 2023. The attacker found servers with port 7741 open and uploaded his own Java application through the interface kiosks use to send video; the server ran it on its own. He got access to the database and logs, downloaded usernames and password hashes, could disable two-factor login, read and decrypted exchange API keys and sent funds from hot wallets. According to the manufacturer, at least 56 BTC was stolen. Logs from old kiosk software versions contained private keys that customers had scanned at the kiosk. The manufacturer's own cloud service was breached as well.

What follows from this:

  1. Servers were found by scanning cloud addresses for known ports → the admin and kiosk connection ports must not answer from the internet (step 3, check — step 11).
  2. The vulnerability lived in the code for two years → install server updates as soon as they are released (step 2).
  3. The attacker created his own administrator → regularly match the user list against real people (step 5).
  4. The default administrator was renamed to "gb" → look not only for new users but also for renamed ones, and check every user's email (step 5).
  5. The attacker created his own organization and terminal → match the terminals in CAS against the kiosk inventory (steps 1 and 4).
  6. The attacker's wallet was written into the sell settings and "Invalid Payment Address" → keep a reference list of addresses outside the server and compare against it (step 6).
  7. Two-way kiosks sent customers' coins to the attacker → if you suspect a breach, shut down two-way machines first ("If you have already been breached").
  8. The entry point was port 7741, which is only needed for kiosk pairing → open it only for the duration of pairing and only for that kiosk (step 3).
  9. The server ran the uploaded application on its own → alert on new files in the deployment folder (step 10).
  10. Exchange API keys were read and decrypted → keys have no withdrawal permission and work only from the server's IP (step 7).
  11. Funds were taken from hot wallets → keep only one or two days of turnover on the hot wallet (step 7).
  12. Password hashes were downloaded and two-factor login could be disabled → long unique passwords; after an incident, reset all passwords and 2FA (step 5, "If you have already been breached").
  13. Kiosk logs contained customers' private keys → find and delete them, update the kiosk software (step 8).
  14. The manufacturer's cloud was breached too → if your CAS runs in the vendor's cloud, you need a plan for when it goes down (step 10, continuity plan).
  15. After the breach the manufacturer advised reinstalling the server together with the OS → a clean reinstall and a configuration backup ready to go (step 10).

Step 1. Inventory everything you have

Why: without an inventory you will not notice an "extra" terminal, user or key — exactly what the attacker added in 2022.

How to do it. Fill in the table and store it outside the CAS server (a password manager or an encrypted file kept by the owner):

What Fields
CAS server IP, hosting, CAS version, OS version, who has SSH access
Kiosks serial number, venue address, type (one-way or two-way), connection (LTE / venue network), service contact
Wallets cryptocurrency, address, where the keys are, allowed balance
Exchange API keys exchange, key permissions, IP restriction, issue date
CAS users name, email, role, two-factor login (yes/no)
Reference addresses for each cryptocurrency — the addresses from the buy, sell and "Invalid Payment Address" settings

Done when: the table is filled in, stored outside the server, and has an owner.

Step 2. Update CAS and the server OS

Why: both General Bytes vulnerabilities were fixed by patches; the victims were those who had not updated.

How to do it:

  1. Check the current CAS version in the admin panel and compare it with the Patch Releases page in the General Bytes knowledge base. Update following the manufacturer's instructions.
  2. Subscribe to the Patch Releases page and the security incidents section of the knowledge base — this is your source of new vulnerabilities.
  3. Update the OS and enable automatic security updates:
sudo apt update && sudo apt full-upgrade -y
sudo apt install -y unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades

Check: the CAS version matches the latest patch on the Patch Releases page; apt list --upgradable shows nothing.

Done when: the version is the latest and OS updates install themselves.

Step 3. Put the admin panel and kiosk connections behind VPN

Why: in both incidents the entry point was ports open to the internet (7777 and 443 in 2022, 7741 in 2023).

How to do it.

  1. Enable the administration VPN following the General Bytes guide "CAS Admin — secure your Administration page via VPN". After that the admin panel opens through VPN on ports 12000–12050, and the old port 7777 is closed.
  2. Connect the kiosks through VPN: per the General Bytes documentation, kiosks talk to CAS through VPN on port 7742 and ports 13000–13010.
  3. Configure the server firewall. CAS ports according to the manufacturer's documentation:
Port Purpose Rule
7741 pairing a new kiosk closed; opened only for the duration of pairing and only for that kiosk's address
7742, 13000–13010 kiosk connection to CAS through VPN open
7777 unprotected admin panel closed once the administration VPN is enabled
12000–12050 admin panel through VPN open
7743, 80, 443 REST API closed if you do not use the API
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow from <admin_or_office_IP> to any port 22 proto tcp comment 'SSH admin only'
sudo ufw allow 7742 comment 'CAS: kiosks via VPN'
sudo ufw allow 13000:13010/tcp comment 'CAS: kiosks via VPN'
sudo ufw allow 13000:13010/udp comment 'CAS: kiosks via VPN'
sudo ufw allow 12000:12050/tcp comment 'CAS: admin via VPN'
sudo ufw allow 12000:12050/udp comment 'CAS: admin via VPN'
sudo ufw deny 7741 comment 'CAS: pairing - temporary only'
sudo ufw deny 7777 comment 'CAS: admin without VPN'
sudo ufw deny 7743 comment 'CAS: REST API'
sudo ufw enable
sudo ufw status numbered
  1. Pairing a new kiosk. Open 7741 only for its address, pair the kiosk, close the port:
sudo ufw allow from <kiosk_IP> to any port 7741 proto tcp comment 'temporary: kiosk pairing'
# ... pair the kiosk; approve the request with two-factor login ...
sudo ufw status numbered
sudo ufw delete <7741_rule_number>
  1. If the server is in the cloud (Digital Ocean and others), duplicate the same rules in the cloud firewall: then a mistake in ufw will not expose the server.

Check: from mobile internet, without VPN:

nmap -Pn -p 22,80,443,7741,7742,7743,7777,12000-12050,13000-13010 <CAS_server_IP>

Ports 7741, 7743, 7777, 80, 443 and 22 (from anything but your address) are filtered or closed. The admin panel opens only with VPN on.

Done when: only the VPN ports are visible from the internet, and the admin panel cannot be opened without VPN.

Step 4. Match the kiosks in CAS against the inventory

Why: in 2022 the attacker created his own terminal and his own organization in CAS.

How to do it:

  1. Open the terminal list in the CAS admin panel.
  2. Compare it with the kiosk table from step 1: serial number, venue, status.
  3. Delete unknown terminals (the manufacturer gave an example like "BT123456") and any not tied to a real kiosk.
  4. Check that approving pairing requests requires two-factor login (this is how General Bytes works).

Check: the number of terminals in CAS = the number of kiosks in the table.

Done when: CAS has no terminal that is missing from the inventory.

Step 5. Review users, permissions and two-factor login

Why: in 2022 the attacker created an administrator and renamed the default one; in 2023 he downloaded password hashes and could disable two-factor login.

How to do it:

  1. In the CAS admin panel, open Users, Groups and Persons.
  2. For each user: is this a real person from the table? Is their email correct? Are their permissions the ones they need?
  3. Delete unknown users and anyone who no longer works for you. Give admin rights to one or two people only.
  4. Enable two-factor login for every user.
  5. Passwords are long and unique, from a password manager; do not share one "admin" login among several people.

Check: the CAS user list matches the table from step 1, and everyone has a second factor enabled.

Done when: there is not a single unknown, shared or "dormant" user.

Step 6. Check the addresses in the crypto settings

Why: in 2022 the attacker wrote his own wallet into the sell settings and "Invalid Payment Address".

How to do it:

  1. Open Crypto Settings in CAS for each coin.
  2. Compare the buy, sell and "Invalid Payment Address" addresses with the reference from step 1 — character by character, or by the last 8 and first 8 characters.
  3. Run the built-in crypto settings tests (the manufacturer recommended them after the incident).
  4. Any mismatch — stop sales for that coin and investigate.

Check: all addresses match the reference, the tests pass.

Done when: the reference is stored outside the server, and the comparison is part of the monthly checklist.

Step 7. Cap the hot wallet and restrict exchange API keys

Why: in 2023 the attacker sent funds from hot wallets and decrypted exchange API keys.

How to do it:

  1. Hot wallet balance — no more than one or two days of turnover. Work it out from the transaction log: the busiest day + the largest single transaction. Move the surplus to reserve (see where to store funds).
  2. Exchange API keys:
    • permissions — trading and reading only; withdrawals disabled, or allowed only to addresses on the exchange's whitelist;
    • key access only from the CAS server's IP address (IP restriction in the key settings on the exchange);
    • a separate key for each server; record the issue date in the table.
  3. Rotation: new keys after any incident and after anyone with server access leaves.

Check: each key's settings on the exchange show withdrawals disabled and IP restricted to the server's address.

Done when: a server breach today would cost you no more than one day's turnover.

Step 8. Search the logs for customers' private keys

Why: in 2023, logs from old kiosk software contained private keys that customers had scanned at the kiosk.

How to do it. Search logs and exports for strings that look like a Bitcoin private key in WIF format (starting with 5, K or L, 51–52 characters long):

sudo grep -rEo '\b[5KL][1-9A-HJ-NP-Za-km-z]{50,51}\b' <CAS_log_folder> | head -20

If anything turns up:

  1. Delete those entries or files (including from backups).
  2. Update the kiosk software to versions that do not log such data.
  3. Assess whether these logs were accessible to outsiders; if so, this is a personal data incident (see the article on customer data).

Check: a repeat search finds nothing.

Done when: the logs contain no private keys and the kiosk software is updated.

Step 9. Isolate each kiosk's network

Why: a kiosk connected to the shop's Wi-Fi or network sits on the same network as other people's POS terminals and guests, and if it is compromised it can reach anywhere.

How to do it.

Option A — the kiosk's own LTE router (preferred). Allow the kiosk to reach only the CAS server and a time server. Example for MikroTik:

/ip firewall address-list
add list=atm-allowed address=<CAS_server_IP> comment="CAS"
add list=atm-allowed address=<NTP_IP> comment="NTP"
/ip firewall filter
add chain=forward action=accept connection-state=established,related
add chain=forward action=accept in-interface=bridge-atm dst-address-list=atm-allowed comment="ATM -> CAS only"
add chain=forward action=drop in-interface=bridge-atm comment="ATM -> anything else"
add chain=input action=accept connection-state=established,related
add chain=input action=drop in-interface=lte1 comment="no management from LTE"
/user set admin password="<unique_password>"
/ip service disable telnet,ftp,www,api,api-ssl

Option B — the venue's network. Send the venue an email (template):

The crypto ATM needs a dedicated port or VLAN: internet access only to <CAS_server_IP> (ports <VPN_ports>) and NTP, with no access to the shop network or guest Wi-Fi, and no access from the shop network to the kiosk. Please confirm the setup in writing.

The kiosk itself:

  1. The service menu password is unique for each kiosk and stored in the password manager.
  2. The cabinet is locked, keys are held by a small group and every handover is logged; the tamper sensor is on.

Check: plug a laptop into the kiosk's port (or its LTE router) — only the CAS server is reachable; ping 8.8.8.8 and any venue addresses do not respond.

Done when: each kiosk can reach only its own server.

Step 10. Set up alerts and a backup

Why: in 2023 the server ran a planted application on its own; the breach was discovered by its consequences. After the breach the manufacturer advised reinstalling the server from scratch — that requires a fresh configuration backup.

How to do it.

  1. Alert on new files in the CAS deployment folder — every 5 minutes, via Telegram:
#!/bin/sh
DIR="<CAS_deployment_folder>"
STAMP=/var/lib/cas-deploy-watch.stamp
[ -f "$STAMP" ] || touch "$STAMP"
CHANGED=$(find "$DIR" -type f -newer "$STAMP")
touch "$STAMP"
[ -n "$CHANGED" ] && curl -s -X POST "https://api.telegram.org/bot<TOKEN>/sendMessage" \
  -d chat_id=<CHAT_ID> --data-urlencode "text=CAS: new files in the deployment folder: $CHANGED"
sudo chmod +x /usr/local/bin/cas-deploy-watch.sh
echo '*/5 * * * * root /usr/local/bin/cas-deploy-watch.sh' | sudo tee /etc/cron.d/cas-deploy-watch
  1. SSH brute-force protection: sudo apt install -y fail2ban (the default settings protect SSH).
  2. Server backup: a daily snapshot in the hosting panel + a backup of the CAS database and configuration following the manufacturer's instructions — to storage outside this server (see the article on backups).
  3. If CAS runs in the manufacturer's cloud, write into your continuity plan what you do if that cloud is unavailable or breached.

Check: create a test file in the deployment folder — within 5 minutes a message arrives; delete the file. Restoring from a snapshot has been tested at least once.

Done when: you learn about a new file on the server within minutes, and the server can be rebuilt from a backup.

Step 11. Test the server from the outside

Why: the settings may have been reset by an update, the hosting provider or a colleague.

How to do it: once a month and after every change — the scan from step 3 from mobile internet without VPN, plus an attempt to open the admin panel in a browser without VPN.

Done when: the result matches what step 3 expects.

If you have already been breached

Based on General Bytes' recommendations after the 2022 and 2023 incidents:

  1. Stop the admin and kiosk connection services (admin and master) on the server.
  2. Shut down the kiosks, two-way ones first, so they stop forwarding customers' coins.
  3. Reinstall the server together with the OS, install the latest patch, restore the configuration from a verified backup.
  4. Reset passwords and two-factor login for all users.
  5. Treat as compromised all exchange API keys and hot wallet keys: issue new ones and move the funds.
  6. Review users, terminals and crypto settings (steps 4–6), and go through the admin.log file.
  7. Bring back only verified kiosks.
  8. Record everything in a log: what happened, when, what was done. Report to the police; for customer data — under the personal data law (72 hours).

For crypto ATM operators in Georgia: what NBG requires

Since 2023 the National Bank of Georgia (NBG) has registered and supervised virtual asset service providers (VASPs) under Order No. 94/04 of 13 June 2023. Exchanging crypto through kiosks is also a VASP service.

NBG rules that apply to crypto ATMs (as described by the law firm AXIOM 11; check the wording against the order text on matsne.gov.ge):

  • Registration with NBG — before you start operating.
  • Capital of GEL 150,000 for exchange, including through kiosks; for existing VASPs — by September 1, 2027 (amendment of September 8, 2026).
  • A cybersecurity, operational risk and business continuity framework — by July 1, 2027.
  • A searchable log of all transactions — Art. 7(5).
  • An electronic system that flags unusual transactions — Art. 8(3).
  • The IT system in operation must match the diagram submitted to NBG, otherwise registration is refused (Art. 3(9)).
  • The registration document displayed prominently at all points of service, including kiosks — proposed in the October 2025 draft amendments; check whether it was adopted.
  • A penetration test of critical network-connected systems at least once a year, other systems once every three years (as described by the law firm Andersen; check against the order text).

Steps 2–11 of this article are the technical part of the cybersecurity framework; steps 1 and 10 are part of the business continuity framework.

Checklist

# What to check How to confirm ☐
1.1 The table covers all six sections the step 1 table has no empty rows: server, kiosks, wallets, API keys, users, reference addresses ☐
1.2 The table is stored outside the CAS server it is in a password manager or an encrypted file kept by the owner; there is no copy on the CAS server ☐
1.3 The table has an owner the table header shows a name and a last-updated date no older than 30 days ☐
2.1 CAS is on the latest patch the version in the CAS admin panel equals the latest on the General Bytes Patch Releases page ☐
2.2 The server OS is up to date apt list --upgradable shows only the "Listing… Done" line ☐
2.3 Security updates install themselves systemctl is-enabled unattended-upgrades — enabled ☐
2.4 You hear about new patches right away the owner's inbox has a notification about the latest patch or incident from the knowledge base pages ☐
3.1 The admin panel opens only through VPN without VPN the admin address does not open in a browser; with VPN it does ☐
3.2 Dangerous ports are closed from outside nmap from step 3 over mobile internet: 7741, 7743, 7777, 80, 443 — filtered or closed; 22 is closed from anything but your address ☐
3.3 The pairing port has not been left open sudo ufw status | grep 7741 — only DENY, no allow rules ☐
3.4 The cloud firewall duplicates ufw the cloud provider panel allows the same ports as ufw status ☐
4.1 CAS has as many terminals as there are kiosks number of terminals in the admin panel = number of kiosk rows in the table, serial numbers match ☐
4.2 No foreign organizations the CAS organization list contains only yours ☐
4.3 Pairing a new kiosk requires 2FA when approving a pairing request, CAS asks for a second-factor code ☐
5.1 CAS users match real people every user in Users is in the table as a real employee; no former staff ☐
5.2 No renamed administrators every administrator, including the default one, has your email and the same name as in the table ☐
5.3 Everyone has a second factor 2FA is enabled on every user's profile ☐
5.4 No shared logins ask staff which login they use — each has their own, "admin" is not shared ☐
6.1 Addresses in the settings match the reference for each coin, the buy, sell and "Invalid Payment Address" addresses match the reference character by character ☐
6.2 Crypto settings tests pass the built-in tests in Crypto Settings show no errors for any coin ☐
7.1 The hot wallet balance is within the limit the balance in a block explorer is no more than one or two days of turnover from the step 1 table ☐
7.2 API keys cannot withdraw funds in each key's settings on the exchange, withdrawals are disabled or allowed only to the whitelist ☐
7.3 API keys work only from the server's IP in each key's settings, the IP restriction = the CAS server address ☐
8.1 Logs contain no customer private keys the step 8 search over logs and exports returns nothing ☐
8.2 Kiosk software is up to date each kiosk's software version is recorded in the step 1 table and matches the latest the manufacturer released for that model ☐
9.1 The kiosk can reach only the CAS server laptop in the kiosk port: ping 8.8.8.8 and venue addresses do not respond, the CAS server is reachable ☐
9.2 The kiosk router cannot be managed from LTE from mobile internet, Winbox, SSH and web do not open on the LTE router's external address ☐
9.3 Each kiosk has its own service password the password manager has a separate entry for each kiosk, the passwords differ ☐
9.4 The venue confirmed isolation in writing (option B) you have the venue's reply to the email from step 9 ☐
10.1 A planted file triggers an alert a test file in the deployment folder — a Telegram message within 5 minutes ☐
10.2 SSH is protected from brute force sudo fail2ban-client status sshd — the sshd jail is active ☐
10.3 The server can be rebuilt from a backup yesterday's snapshot exists in the hosting panel; there is a record of a test restore from a snapshot ☐
11.1 The external check is recent the last step 3 scan without VPN is no older than 30 days and matched the expected result ☐
11.2 The admin panel does not open without VPN from mobile internet, the admin address in a browser without VPN does not load ☐
12.1 The monthly checklist run was not skipped the date of the last run through this checklist is no older than 30 days ☐
12.2 Issues from the last run are closed every row not ticked last time has a fix date, or an owner's name and a deadline ☐

Questions

I don't use General Bytes. Does this article apply?

Yes: the steps are the same. Take the port list from your manufacturer's documentation and split it into three groups — "VPN only", "temporary only", "closed".

My CAS server is in the manufacturer's cloud — what is still on me?

Steps 1, 4–7 and 9 are always on you. For steps 2, 3, 8 and 10, get the manufacturer's answer in writing: who updates, who closes the ports, where the backups are.

Do I really need to put the admin panel behind VPN if the passwords are strong?

Yes. In 2022 the attacker did not guess a password: he used a vulnerability in the initial setup page to create his own administrator. A password protects against guessing; VPN protects against everyone who can reach the admin panel at all (step 3).

What happens if I don't update CAS?

The vulnerability used in the 2022 breaches had been in the code for almost two years, and the victims were those who had not installed the fix. After every update, repeat the external check (step 11): the settings may have been reset.

How do I tell if my CAS server has already been breached?

Signs from real incidents: an unknown or renamed administrator, an extra terminal or organization, a foreign address in the sell settings or "Invalid Payment Address", new files in the deployment folder, unexplained transfers from the hot wallet. Even one sign — follow the "If you have already been breached" section.

Why are two-way kiosks more dangerous?

In 2022 they were the ones forwarding customers' coins to the attacker: he had written his wallet into the sell settings. That is why they are shut down first when a breach is suspected.

How much should a crypto ATM keep on its hot wallet?

No more than one or two days of turnover: the busiest day plus the largest single transaction from the log (step 7). The rest goes to a reserve the CAS server cannot send on its own.

Can I connect a crypto ATM to a shop's or café's Wi-Fi?

Not directly to their shared network or guest Wi-Fi. Either give the kiosk its own LTE router, or a dedicated port or VLAN with access only to the CAS server — with written confirmation from the venue (step 9).

Who is responsible for security if the kiosk sits at someone else's venue?

The operator: the server, users, addresses and wallets are always yours (steps 1–8). The venue is responsible only for what you agreed with it in writing — usually a dedicated port and physical access to the cabinet.

A kiosk was broken into or stolen. What do I do?

Delete or block its terminal in CAS so it can no longer connect to the server, and change its service password. Check whether any new terminals or pairing requests have appeared (step 4), record the event in the log and report it to the police.

How often should a crypto ATM network be pentested?

According to Andersen's description of the NBG amendment, critical network-connected systems — at least once a year; the CAS server and kiosk connections are among them. Check against the order text; outside Georgia, follow your own regulator's requirements.


Note: The incident analysis and ports are based on the General Bytes knowledge base (see Sources). NBG requirements are based on a law firm's description and should be checked against the order text.

Sources

  1. General Bytes KB — Configuring Server Firewalls (CAS ports)
  2. General Bytes KB — Security Incident August 18th 2022
  3. General Bytes KB — Security Incident March 17-18th 2023
  4. General Bytes KB — Pairing Requests (2FA for approving pairing)
  5. AXIOM 11 — VASP licence in Georgia (2026): requirements of NBG Order 94/04 and the amendment of 08.09.2026
  6. Andersen in Georgia — New Stage in Virtual Asset Market Regulation in Georgia (02.10.2026)
↑