Add introspection and monitor verbs #277
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds two new capabilities to the SROS 2 tools: 1️⃣
introspection
(of RTPS) for modeling purposes and 2️⃣monitor
ing capabilities to detect security vulnerable endpoints in the computational graph. The two verbs build on top of prior work creating a dissector for RTPS (secdev/scapy#3403).1️⃣
introspection
(of RTPS) for modeling purposesintrospection sniffs traffic and detects unique endpoints, reporting them in the stdout:
ros2 security introspection lo 10 introspecting lo for 10 seconds ... DDS endpoint detected (hostId=17776813, appId=1014856696, instanceId=16777216) - RTPS version: 2.3 - vendorId: eProsima - Fast-RTPS - transport: UDP DDS endpoint detected (hostId=1696862209, appId=2184387115, instanceId=4263454804) - RTPS version: 2.1 - vendorId: ADLINK - Cyclone DDS - transport: UDP
2️⃣
monitor
ing capabilities to detect security vulnerable endpointsmonitoring continuously sniffs traffic in search for RTPS packages. When found, unique endpoints are
identified and dissected. From the information dissected 1) RTPS
vendorId
and 2) the RTPS protocol version are usedto determine DDS version candidates and map these to publicly disclosed vulnerabilities.
(tested
Signed-off-by: Víctor Mayoral Vilches v.mayoralv@gmail.com