Add an artifact that queries connections config from NetworkManager #702
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.
NetworkManager is commonly used in Linux for configuring network connections. This artifact extracts all network connections configured in NetworkManager, which includes data like
If NetworkManager is used on the system, this gives information about what networks the computer has connected to (especially for Wi-Fi), and when it was last connected to those networks. A simple VQL filter reveals which of those network were insecure, or if any interfaces has been configured as an access point or as ad-hoc. NetworkManager also tracks all seen BSSIDs for networks.
Connections are typically not tied to a specific interface, so it is not always useful to correlate current IP addresses and routes on interfaces against active connections. An optional enrichment using interfaces() was tested and subsequently removed.
INI is a very common configuration file format, and I couldn't find any existing parser. This artifact therefore exports an INI file parser for use by other artifacts.
parse_ini(filename)
returns three columns: Section, Key, Value.parse_ini_as_dict(filename)
returns a single column, Contents, with everything in a dict. Section names are prepended to keys, separated by a slash. Spaces in values are supported, and quotes are included as-is.I haven't included any example output because there would be little data left after sanitising everything.