Forensic Investigation Reveals Source of 4B Bybit Hack

Listen to this Post

Bybit CEO Ben Zhou shared the initial findings of the $1.4 billion Bybit hack, revealing how attackers infiltrated the exchange’s security layers. Reports from cybersecurity firms Sygnia Labs and Verichains suggest that the attack originated from Safe{Wallet}’s compromised infrastructure, rather than any breach within Bybit itself.

According to the report, the hackers gained unauthorized access to a Safe developers’ credentials to insert a malicious JavaScript into Safe{Wallet}’s app, effectively deceiving Bybit’s Ethereum Multisig Cold Wallet. Notably, they embedded this harmful code in the app.safe.global website on February 19, 2025, at 15:29:25 UTC. The malicious script remained dormant until Bybit conducted a routine transaction on February 21, at 14:13:35 UTC, triggering the exploit.

Signers approving transactions saw a legitimate contract address displayed, but in the background, the JavaScript altered the submission to direct funds to the hacker-controlled wallet instead. This suggests a sophisticated, well-planned operation, with investigations pointing towards the infamous North Korean-linked Lazarus Group.

Further, ByBit recently announced $140 million bounty to trace stolen funds: https://lnkd.in/ezqrEUa5

Practice Verified Codes and Commands:

1. Check for Malicious JavaScript in Web Applications:

grep -r "eval(" /var/www/html/

This command searches for the use of `eval()` in web application files, which is often a sign of malicious JavaScript.

2. Monitor Ethereum Transactions for Anomalies:

web3.eth.getTransactionReceipt('0x...')

Use this command to inspect Ethereum transaction receipts for any unexpected behavior.

3. Analyze Network Traffic for Suspicious Activity:

tcpdump -i eth0 -w capture.pcap

Capture network traffic and analyze it using tools like Wireshark to detect unusual patterns.

  1. Check for Unauthorized Access to AWS S3 Buckets:
    aws s3api get-bucket-acl --bucket my-bucket
    

    This command retrieves the access control list (ACL) for an S3 bucket to ensure no unauthorized users have access.

5. Scan for Vulnerabilities in Web Applications:

nikto -h https://app.safe.global

Use Nikto to scan for vulnerabilities in web applications.

What Undercode Say:

The Bybit hack underscores the importance of robust cybersecurity measures in protecting digital assets. The attackers exploited a compromised infrastructure to inject malicious JavaScript, highlighting the need for continuous monitoring and vulnerability assessments. Organizations must implement stringent access controls, regularly update their software, and conduct thorough security audits to mitigate such risks.

In the context of Linux and IT security, several commands and practices can help safeguard systems:

1. Regularly Update Software:

sudo apt-get update && sudo apt-get upgrade

Keeping software up-to-date ensures that known vulnerabilities are patched.

2. Monitor System Logs:

tail -f /var/log/syslog

Regularly check system logs for any unusual activity.

3. Implement Firewall Rules:

sudo ufw enable
sudo ufw allow ssh

Enable and configure a firewall to restrict unauthorized access.

4. Use Intrusion Detection Systems (IDS):

sudo apt-get install snort

Install and configure an IDS like Snort to detect and prevent intrusions.

5. Conduct Regular Security Audits:

lynis audit system

Use tools like Lynis to perform comprehensive security audits.

6. Encrypt Sensitive Data:

openssl enc -aes-256-cbc -salt -in file.txt -out file.enc

Encrypt sensitive files to protect them from unauthorized access.

7. Backup Critical Data:

tar -czvf backup.tar.gz /path/to/important/data

Regularly backup critical data to ensure recovery in case of a breach.

8. Harden SSH Access:

sudo nano /etc/ssh/sshd_config

Edit the SSH configuration to disable root login and use key-based authentication.

9. Monitor User Activity:

last

Use the `last` command to review user login history.

10. Implement Multi-Factor Authentication (MFA):

google-authenticator

Set up MFA for additional security layers.

In conclusion, the Bybit hack serves as a stark reminder of the evolving threat landscape in cybersecurity. Organizations must adopt a proactive approach, leveraging advanced tools and best practices to protect their digital assets. By integrating robust security measures, conducting regular audits, and staying informed about emerging threats, businesses can significantly reduce their risk of falling victim to sophisticated cyberattacks.

For further reading on cybersecurity best practices, visit:

References:

initially reported by: https://www.linkedin.com/posts/protector47_bybit-incident-investigation-report-activity-7300603552580751361-DoTc – Hackers Feeds
Extra Hub:
Undercode AIFeatured Image