Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
/packages/snort @elastic/security-external-integrations
/packages/snyk @elastic/security-external-integrations
/packages/sonicwall @elastic/security-external-integrations
/packages/sonicwall_firewall @elastic/security-external-integrations
/packages/sophos @elastic/security-external-integrations
/packages/spring_boot @elastic/obs-service-integrations
/packages/squid @elastic/security-external-integrations
Expand Down
5 changes: 4 additions & 1 deletion packages/sonicwall/_dev/build/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Sonicwall integration
# Sonicwall integration (Deprecated)

_This integration is deprecated. Please use the SonicWall Firewall
integration instead._

This integration is for Sonicwall device's logs. It includes the following
datasets for receiving logs over syslog or read from a file:
Expand Down
5 changes: 5 additions & 0 deletions packages/sonicwall/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.8.2"
changes:
- description: Mark package as deprecated. Please migrate to the sonicwall_firewall package.
type: enhancement
link: https://github.com/elastic/integrations/pull/3365
- version: "0.8.1"
changes:
- description: Format source.mac and destination.mac as per ECS.
Expand Down
5 changes: 4 additions & 1 deletion packages/sonicwall/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Sonicwall integration
# Sonicwall integration (Deprecated)

_This integration is deprecated. Please use the SonicWall Firewall
integration instead._

This integration is for Sonicwall device's logs. It includes the following
datasets for receiving logs over syslog or read from a file:
Expand Down
4 changes: 2 additions & 2 deletions packages/sonicwall/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
format_version: 1.0.0
name: sonicwall
title: Sonicwall-FW Logs
version: "0.8.1"
description: Collect logs from Sonicwall devices with Elastic Agent.
version: "0.8.2"
description: Deprecated. Collect logs from Sonicwall devices with Elastic Agent.
categories: ["network", "security"]
release: experimental
license: basic
Expand Down
3 changes: 3 additions & 0 deletions packages/sonicwall_firewall/_dev/build/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies:
ecs:
reference: git@8.2
79 changes: 79 additions & 0 deletions packages/sonicwall_firewall/_dev/build/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# SonicWall Firewall Integration

This integration collects syslog messages from SonicWall firewalls. It has been tested with Enhanced
Syslog logs from SonicOS 6.5 and 7.0 as described in the [Log Events reference guide.](https://www.sonicwall.com/techdocs/pdf/sonicos-6-5-4-log-events-reference-guide.pdf)

## Configuration

Configure a Syslog Server in your firewall using the following options:
- **Name or IP Address:** The address where your Elastic Agent running this integration is reachable.
- **Port:** The Syslog port (UDP) configured in this integration.
- **Server Type:** Syslog Server.
- **Syslog Format:** Enhanced Syslog.
- **Syslog ID:** Change this default (`firewall`) if you need to differentiate between multiple firewalls.
This value will be stored in the `observer.name` field.

It's recommended to enable the **Display UTC in logs (instead of local time)** setting under the
_Device > Settings > Time_ configuration menu. Otherwise you'll have to configure the **Timezone Offset**
setting of this integration to match the timezone configured in your firewall.

Ensure proper connectivity between your firewall and Elastic Agent.

## Supported messages

This integration features generic support for enhanced syslog messages produced by SonicOS and features
more detailed ECS enrichment for the following messages:

| Category | Subcategory | Message IDs |
|----------|-------------|-------------|
| Firewall | Access Rules | 440-442, 646, 647, 734, 735 |
| Firewall | Application Firewall | 793, 1654 |
| Firewall Settings | Advanced | 428, 1473, 1573, 1576, 1590 |
| Firewall Settings | Checksum Enforcement | 883-886, 1448, 1449 |
| Firewall Settings | FTP | 446, 527, 528, 538 |
| Firewall Settings | Flood Protection | 25, 856-860, 862-864, 897, 898, 901, 904, 905, 1180, 1213, 1214, 1366, 1369, 1450-1452 |
| Firewall Settings | Multicast | 683, 690, 694, 1233 |
| Firewall Settings | SSL Control | 999, 1001-1006, 1081 |
| High Availability | Cluster | 1149, 1152 |
| Log | Configuration Auditing | 1382, 1383, 1674 |
| Network | ARP | 45, 815, 1316 |
| Network | DNS | 1098, 1099 |
| Network | DNS Security | 1593 |
| Network | ICMP | 38, 63, 175, 182, 188, 523, 597, 598, 1254-1257, 1431, 1433, 1458 |
| Network | IP | 28, 522, 910, 1301-1303, 1429, 1430 |
| Network | IPcomp | 651-653 |
| Network | IPv6 Tunneling | 1253 |
| Network | Interfaces | 58 |
| Network | NAT | 339, 1197, 1436 |
| Network | NAT Policy | 1313-1315 |
| Network | Network Access | 41, 46, 98, 347, 524, 537, 590, 714, 1304 |
| Network | TCP | 36, 48, 173, 181, 580, 708, 709, 712, 713, 760, 887-896, 1029-1031, 1384, 1385, 1628, 1629 |
| Security Services | Anti-Spyware | 794-796 |
| Security Services | Anti-Virus | 123-125, 159, 408, 482 |
| Security Services | Application Control | 1154, 1155 |
| Security Services | Attacks | 22, 23, 27, 81-83, 177-179, 267, 606, 1373-1376, 1387, 1471 |
| Security Services | Botnet Filter | 1195, 1200, 1201, 1476, 1477, 1518, 1519 |
| Security Services | Content Filter | 14, 16, 1599-1601 |
| Security Services | Geo-IP Filter | 1198, 1199, 1474, 1475 |
| Security Services | IDP | 789, 790 |
| Security Services | IPS | 608, 609 |
| Security Services | Next-Gen Anti-Virus | 1559-1562 |
| Security Services | RBL Filter | 797, 798 |
| System | Administration | 340, 341 |
| System | Cloud Backup | 1511-1516 |
| System | Restart | 93-95, 164, 599-601, 1046, 1047, 1392, 1393 |
| System | Settings | 573, 574, 1049, 1065, 1066, 1160, 1161, 1268, 1269, 1336-1340, 1432, 1494, 1520, 1521, 1565-1568, 1636, 1637 |
| System | Status | 4, 53, 521, 1107, 1196, 1332, 1495, 1496 |
| Users | Authentication Access | 24, 29-35, 199, 200, 235-238, 246, 261-265, 328, 329, 438, 439, 486, 506-509, 520, 549-551, 557-562, 564, 583, 728, 729, 759, 986, 987, 994-998, 1008, 1035, 1048, 1080, 1117-1124, 1157, 1158, 1243, 1333-1335, 1341, 1342, 1517, 1570-1572, 1585, 1627, 1655, 1672 |
| Users | Radius Authentication | 243-245, 744-751, 753-757, 1011 |
| Users | SSO Agent Authentication | 988-991 |
| VPN | DHCP Relay | 229 |
| Wireless | RF Monitoring | 879 |
| Wireless | WLAN | 1363 |
| Wireless | WLAN IDS | 546, 548 |

## Logs

{{event "log"}}

{{fields "log"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '2.3'
services:
sonicwall_firewall-logfile:
image: alpine
volumes:
- ./sample_logs:/sample_logs:ro
- ${SERVICE_LOGS_DIR}:/var/log
command: /bin/sh -c "cp /sample_logs/* /var/log/"
sonicwall_firewall-syslog:
image: docker.elastic.co/observability/stream:v0.7.0
volumes:
- ./sample_logs:/sample_logs:ro
entrypoint: /bin/bash
command: -c "/stream log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9514 -p=udp /sample_logs/log.log"
Loading