Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log s7comm device information #18

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mvhensbergen
Copy link

🗣 Description

These changes create a new log file 's7comm_known_devices.log' which contains s7comm device identification information obtained from the s7comm protocol.

💭 Motivation and context

In relation to OT Network Detection and Response, device and asset enumeration obtained by passive network inspection can be a good tool to monitor network devices. Baselining on identification strings allow alerting on unintentional changes in e.g. firmware.

This code adds additional binpac structures to more obtain the information in question.

🧪 Testing

A test trace has been added to the repository and I have done field testing in a few OT environments.

An existing testcase fails after my change but I believe the new parsing is more accurate than the original one. According to my analysis, the original parser incorrectly parsed a packet leading to an extra log line.

Feel free to contact me to discuss.

@piercema piercema self-assigned this Jan 7, 2025
@mvhensbergen
Copy link
Author

Is there any update on the review of this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants