Insights

Practical Notes on medcom.id

December 3, 2026
0:00
After a ransomware incident, many teams try to estimate what was stolen by opening the server's outbound bandwidth graph. If there is no obvious spike, they conclude the attackers didn't take much. That reasoning fails often, and the failure is costly. Your answer to what data left the network drives breach notification, legal advice, and how seriously you treat a leak threat.
Recent coverage on medcom.id about ransomware response raises three points that change how you should think about this. Attackers who use AI-driven tooling can run the attack cycle faster and more cheaply. Initial access often comes through social engineering of internal staff, such as phishing or deepfakes, rather than through a server exploit. The coverage also recommends a data exfiltration audit: an assessment of the volume and type of sensitive data the ransomware group accessed or stole. This matters under double extortion, where attackers both lock the systems and threaten to publish the stolen data on the dark web. A restore brings systems back, but it doesn't answer the leak question. That background is covered in Mengira Backup Cukup Hadapi Ransomware? Cek Dulu Apakah Data Sudah Disedot Keluar. This article focuses on the audit itself, and on why the most common shortcut gives the wrong answer.
A bandwidth graph measures total bytes through an interface over time. Several ordinary conditions hide exfiltration inside that number. Monitoring tools usually sample every few minutes and average the result, so a short burst gets smoothed into the baseline. A busy web server already sends large amounts of traffic every day. A compressed database dump can be small next to that. Attackers who send data slowly over hours or days produce no spike at all. The data also may not leave from the server you are watching. When the way in was a phished staff member, data often moves through that person's workstation, mailbox, or cloud storage account. The server graph shows nothing because the server never sent it. Exfiltration can also use channels that look like normal traffic: HTTPS uploads to common cloud storage, or DNS queries. The DNS case is covered in Server Sudah Diisolasi Setelah Ransomware tapi Data Masih Bocor? Cek Exfiltration di DNS Query Log. Databases add one more gap. People assume MySQL keeps a record of what was read. Typically it doesn't. The binary log records changes such as INSERT, UPDATE, and DELETE, not plain SELECT queries. The general query log, which would record reads, is usually disabled because of its performance and disk cost. An attacker who runs a full dump with valid credentials can leave almost no trace on the database side. A flat graph therefore means only that no single large transfer happened from that interface during that sampling window. It does not mean nothing was taken.
The production pattern works in the opposite direction. You start from where sensitive data lives and work outward to how it could have left. Follow this order, because early steps protect the evidence later steps depend on.
  1. Preserve logs before anything else. Logrotate, journald size limits, and control panel retention settings will keep deleting old entries while you investigate. Copy web, mail, auth, database, and firewall logs to a separate host. Record file hashes so you can later show the copies weren't altered.
  2. List where sensitive data lives. Include production databases, upload directories, old backups left in web roots, exported CSV files, mail spools, and staging copies that were never cleaned up. These often hold more personal data than the live site.
  3. Look for access and staging traces at each location. Attackers usually collect and compress data before sending it. Look for new archives, dump files, unusual files in temp directories, recent shell history, new system users, and new SSH keys.
  4. Correlate with egress evidence. Check web logs for unusually large responses, firewall or flow logs if you have them, and DNS logs. Here you are confirming specific suspicions, not searching for a spike.
  5. Classify what you found. Record the data type (personal data, credentials, payment-related data), an approximate volume such as record counts or file sizes, and how confident you are in each finding.
For step 3, a read-only search for large files changed in the last two weeks is a reasonable first pass on a Linux server. The size and age thresholds are illustrative values. Adjust them to your incident window.
BASH
# Large files modified in the last 14 days on the root filesystem only (read-only)
find / -xdev -type f -mtime -14 -size +100M -ls 2>/dev/null

# Repeat for other mounted data partitions, for example /home or /var
find /home -xdev -type f -mtime -14 -size +100M -ls 2>/dev/null
A dump file named after your database inside a public web directory is a strong signal. Attackers sometimes place the archive there and download it over plain HTTP. That download then shows up in the access log as one large response, which leads to the next check. Web access logs record the response size of every request. In the common combined log format, field 7 is the request path and field 10 is the number of bytes sent. The 50 MB threshold below is an illustrative value.
BASH
# Requests that returned more than about 50 MB (combined log format assumed)
awk '10 > 50000000 {print1, 4,7, $10}' /var/log/nginx/access.log

# Include rotated logs that are still uncompressed
awk '10 > 50000000 {print FILENAME,1, 4,7, $10}' /var/log/nginx/access.log*
If your server uses a custom log format, the field positions will differ. Check the log_format directive in Nginx or the LogFormat directive in Apache first. Use zcat to read compressed rotated logs.
When the initial access came through phishing or a deepfake call to staff, the server is only part of the picture. The compromised account may have reached data the server never handled. Check login history for the affected staff accounts in webmail, the control panel, and any single sign-on system. On cPanel servers, login activity is recorded under /usr/local/cpanel/logs/. The exact files depend on the version. Pay attention to mailbox forwarding rules and filters created during the incident window. A forwarding rule quietly copies every incoming email to an outside address, and it keeps working after the password reset. Where these rules are stored depends on the mail server and webmail client, so check through the same interface the user would use. In support work, customers often ask whether you can check if their data was downloaded. The first thing worth checking is whether logs from the relevant period still exist. On shared hosting and small VPS setups, retention is often short enough that the answer depends on how quickly someone preserved them.
An audit produces a set of findings with different levels of certainty. Writing them that way prevents both overreacting and underreacting. Group the findings into three groups:
  • Confirmed accessed or exfiltrated: you have direct evidence, such as an archive file plus a matching large download.
  • Possibly accessed: the attacker had access to the system, but you found no specific evidence of collection.
  • No evidence, with full logs: logs cover the period and show nothing.
Keep the third group separate from systems where logs are missing. Missing logs mean you cannot tell, which is different from clean. Don't let the attackers' leak claims define your scope. They may exaggerate what they hold to increase pressure, or they may hold more than they show in a sample. Your own evidence is what legal and compliance teams can rely on, and it is the basis for any notification decision. When the next incident comes, leave the bandwidth graph for later. Start by copying logs off the affected hosts. Then list where sensitive data lives, look for staged archives and large responses, and include the phished staff accounts in scope. Write each finding with its confidence level, and record the log gaps as clearly as the evidence.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.