This guide explains how to spot ransomware activity on a Palo Alto Networks VPN using the firewall’s built-in logging, threat prevention, and traffic analysis features. You’ll learn the key indicators to look for, how to configure and use the relevant logs, and what actions to take when you suspect an infection.
What You’ll Need
- Administrative access to the Palo Alto firewall (Panorama or individual firewall).
- Access to the firewall’s web interface or CLI.
- Threat Prevention subscription (for advanced threat detection).
- WildFire subscription (for advanced malware analysis).
- Basic understanding of VPN concepts and firewall logs.
Step-by-Step
- Enable Threat Prevention and WildFire on your VPN traffic.
Go to Objects > Security Profiles > Anti-Spyware and Vulnerability Protection. Create or edit profiles and ensure they are set to Alert or Reset for critical and high severity threats. Apply these profiles to the security policy rules that govern VPN traffic (typically from the VPN zone to the internal zone). Also, enable WildFire analysis in the Anti-Malware profile. - Monitor Threat Logs.
Navigate to Monitor > Logs > Threat. Look for entries with severity Critical or High that match known ransomware signatures. Pay special attention to threats with the action Reset or Drop – these indicate blocked attempts. Filter by the VPN user or source IP to see if a specific remote user is generating these alerts. - Check for C2 (Command and Control) Traffic.
Ransomware often communicates with a C2 server. In the Threat log, look for spyware or vulnerability events that indicate C2 callbacks. Also, use Acceleration > DNS Sinkhole if configured – a spike in sinkhole hits from a VPN user is a strong indicator. You can also review Monitor > Logs &em; Traffic for connections to known malicious IPs or domains (you can use external threat intelligence feeds). - Analyze Data Filtering and File Transfers.
Ransomware often encrypts files and exfiltrates data. Check the Data Filtering logs for any policy violations. Also, look for unusual outbound traffic patterns – for example, a VPN user suddenly uploading massive amounts of data to an external IP. In the Traffic log, sort by Bytes Sent and look for anomalies. - Use the Application Command Center (ACC).
The ACC provides a visual overview of threats. Go to ACC > Threat Activity. Look for spikes in threat events, especially from VPN users. The ACC can help you correlate threats with specific users and applications. - Set Up Alerts and Notifications.
To catch ransomware early, configure email or SNMP alerts. Go to Device > Server Profiles > Email and create a profile. Then, in Device > Log Settings, enable email alerts for Threat logs (especially for critical severity). This ensures you are notified immediately when a potential ransomware event occurs. - Investigate Suspicious User Activity.
If you see a user with a high number of threat events, drill down into their session details. Check the Traffic log for that user – look for connections to unusual ports (e.g., 445, 3389) or to IPs in countries where you do not do business. Also, review the User Activity Report to see if they are accessing file shares excessively. - Take Immediate Action.
If you confirm ransomware activity, immediately block the user’s VPN access (via user-ID or IP-based policy). Quarantine the affected endpoint by disconnecting it from the network. Then, follow your incident response plan – preserve logs, isolate the system, and notify the appropriate teams.
Common Mistakes
- Ignoring Low-Severity Alerts: Ransomware often starts with low-severity events like reconnaissance. Do not ignore them; they can be the first sign of an attack.
- Not Applying Profiles to VPN Traffic: Many organizations have separate security policies for VPN traffic, and if the threat prevention profiles are not attached to those policies, the firewall will not inspect the traffic.
- Relying Only on Signatures: Signature-based detection misses new or polymorphic ransomware. Use WildFire and behavioral analysis as well.
- Not Monitoring Outbound Traffic: Ransomware needs to communicate outbound. If you only monitor inbound threats, you will miss the C2 callbacks and data exfiltration.
Tips
- Enable User-ID: This allows you to see which user is generating the traffic, making it easier to identify compromised accounts.
- Use External Dynamic Lists: Subscribe to threat intelligence feeds that provide known malicious IPs and domains. This helps block known C2 servers.
- Set Up a SIEM: Forward your logs to a SIEM (like Splunk or ELK) for advanced correlation and long-term storage. This helps with forensic analysis.
- Regularly Test Your Alerts: Ensure your email alerts are working by triggering a test event. You can use the Test button in the email server profile.
- Keep Your Firewall Updated: Regularly install PAN-OS updates and update the threat prevention signatures to stay protected against the latest ransomware variants.
Troubleshooting
If you are not seeing any threat logs for VPN traffic, check the following:
- Security Policy Rules: Verify that the security policy rule that allows VPN traffic has the threat prevention profiles applied. If the rule is set to Allow without any profiles, the firewall will not inspect for threats.
- Log Forwarding: Ensure you have a log forwarding profile attached to the security policy. Without it, logs may not be sent to Panorama or your SIEM.
- Traffic Visibility: Confirm that you are seeing traffic logs for the VPN users. If you see no traffic logs, the VPN tunnel may not be passing traffic through the firewall (e.g., split tunneling is misconfigured).
- Threat Prevention Subscription: Check that your Threat Prevention license is active. Go to Device > Licenses and verify the expiration date.
Frequently Asked Questions
Can Palo Alto firewall detect ransomware if it is encrypted?
Yes, Palo Alto can decrypt SSL/TLS traffic if you enable SSL decryption. However, this requires installing a CA certificate on endpoints. Without decryption, the firewall can still detect ransomware via other means like DNS sinkhole and behavioral analysis.
What is the best way to detect ransomware on a VPN?
The best approach is a combination of threat prevention profiles, WildFire analysis, and monitoring for C2 traffic. Also, use the ACC to get a high-level view of threats.
How do I block a VPN user if I suspect ransomware?
You can create a dynamic block list entry for the user’s IP address, or modify the security policy to deny that specific IP. For user-based blocking, use the User-ID agent to block the user’s AD account.
What is the difference between WildFire and Threat Prevention?
Threat Prevention uses signatures to detect known threats. WildFire analyzes unknown files in a sandbox environment and can detect zero-day malware, including new ransomware variants.
Can I use Palo Alto to prevent ransomware from spreading?
Yes, you can use security policies to restrict lateral movement. For example, block VPN users from accessing internal file shares unless necessary, and use application-based policies to limit which applications can be used.
How often should I review the threat logs?
Ideally, you should have real-time alerts set up. If you cannot monitor continuously, review logs at least daily, focusing on critical and high severity events.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- I2C HID Touchpad Failure Error: Fixes
- How to Enable or Disable Exit Focus Mode in Windows Terminal
- Cross Browser Testing in Chrome: Step-by-Step
- Arc Browser Little Arc: What It Is & How to Set It Up
- Fix Mouse Lag on Windows 11: Top Ways
- iPod vs iPad: Key Differences Explained