Skip to content
2024-10-03 Network Issues while Scanning

2024-10-03 Network Issues while Scanning

Date2024-10-03
AuthorsNéstor Salceda, Pascual, Miguel Angel
StatusComplete, action items in progress
SummaryAPs from a facility were disconnected just after an agent discovery
Impact2 APs were disconnected and some people had issues to work. People from IT were pulled in from their day to day activities. No impact in production line.
Root Causes
TriggerWe added a new IP for discovering devices after connecting the Agent appliance to VPC trunk.
ResolutionRebooting the switches and stopping the agent brought back systems to normal state.
DetectionThe dashboards from the company started to show issues with the APs.

Action Items

Action ItemTypeOwnerBug
Extract a new module to manipulate IPv4mitigateNéstor Salcedasafetybits#1522
Create a dry-run scanner that only calculates where to scanpreventNéstor Salcedasafetybits#1524
Create an ICMP scanner as an alternative to ARP oneprocessNéstor Salcedasafetybits#1529
Rerun the tests with a network expertotherMiguel Angel
Use a fixed duration for TCP SYN scanning to distribute time among the amount of portspreventNéstor Salcedasafetybits#1532

Lessons Learned

What went well

The line was not stopped. Switches protection prevented a disaster.

Monitoring worked flawlessly, we get the alert pretty fast and accurate.

What went wrong

The agent never should be a threat to a current running infrastructure. The defaults must be so conservative, to don’t disturb the work.

Where we got lucky

The line was not stopped. Switches protection prevented a disaster.

Timeline

2024-10-03 (all times CEST)

  • 11:30 Néstor Salceda arrived to deploy the agent in a dedicated hardware
  • 12:30 Enabled Port Mirroring ingestion and check its processing
  • 13:30 A new rule to detect broadcast traffic was added and enabled to test that Threat Detection is notifying
  • 14:00 Connect the agent to the VPC trunk and add an IP address
  • 14:05 Trigger a new inventory snapshot to collect new things
    • Weird values appeared in under inventory section
    • Subnet was not correctly calculated for the resources
  • 14:10 Dashboard notified about issues with an AP
    • Customer started to run an investigation
    • Ping latencies were high
  • 14:50 At first glance, it looked there were no relationship between two events
    • We went to have lunch
  • 17:35 I receive a summary with the issues that confirms the Agent was the one who created the issues
    • As a protective action, the switches stopped traffic for some devices after detecting weird network behavior
  • 18:30 Nestor detect some issue in the code while calculating the hosts for a network.
The original page embedded an external object here (likely the code snippet) that could not be recovered.

2024-10-04

  • Nestor was working on the changes and the IP calculations look right. I’m starting to think we routed the traffic by the wrong interface
    • We should also consider if we are putting too much traffic in the network

2024-10-09

  • 13:30 We deployed last version in Cefa and performed three tests:
    • A dry-run one to make sure the IP’s from the network interfaces are being honored
    • And ICMP
    • An ARP
      • We didn’t discover devices and found what is the root cause. We configured the network in the on board interface and is the one who was working with DHCP
      • We also needs to document better how the Appliance works and the network interfaces: management, port mirroring and OT scanning