Skip to content

feat(skills): add SNMP enumeration and exploitation skill - #997

Open
sandiyochristan wants to merge 2 commits into
usestrix:mainfrom
sandiyochristan:contrib/skill-snmp
Open

feat(skills): add SNMP enumeration and exploitation skill#997
sandiyochristan wants to merge 2 commits into
usestrix:mainfrom
sandiyochristan:contrib/skill-snmp

Conversation

@sandiyochristan

@sandiyochristan sandiyochristan commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@greptile-apps

greptile-apps Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds an SNMP protocol skill covering discovery, community-string testing, MIB enumeration, write-access validation, SNMPv3 weaknesses, and exploitation workflows. The current guidance still leaves autonomous target state modified and omits a prerequisite for one documented command.

  • Adds SNMP reconnaissance, enumeration, validation, and impact guidance.
  • Adds approval warnings around destructive SET and configuration-extraction examples.
  • Adds setup guidance for Net-SNMP, onesixtyone, and optional wordlists.

Confidence Score: 2/5

The PR should not merge until autonomous write validation restores target state and every unavailable documented tool has usable prerequisite guidance.

The skill directs autonomous agents to leave sysContact overwritten after validation, and the outstanding prerequisites issue still causes the documented Hydra command to fail in the standard sandbox.

Files Needing Attention: strix/skills/protocols/snmp.md

Security Review

The autonomous write check persistently overwrites the target's sysContact value without preserving or restoring the original configuration.

Important Files Changed

Filename Overview
strix/skills/protocols/snmp.md Adds the SNMP skill, but autonomous write validation lacks rollback and the tooling section still omits Hydra's prerequisite.
Prompt To Fix All With AI
### Issue 1
strix/skills/protocols/snmp.md:138-139
**Write validation leaves persistent state**

When an autonomous agent validates a writable SNMP endpoint, this sequence replaces the device's existing `sysContact` value with `strix_write_test` but never preserves or restores the original value, leaving administrative contact information modified after the scan. **How this was verified:** The autonomous validation sequence contains only the write and confirmation commands, and no applicable agent guidance supplies a restoration step.

### Issue 2
strix/skills/protocols/snmp.md:226
**Hydra prerequisite remains undocumented**

When an agent selects the documented Hydra community-string guessing command, the standard sandbox has no Hydra binary and this prerequisites section provides no installation instruction, so the command terminates with `hydra: command not found` instead of testing the target.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (2): Last reviewed commit: "fix(skills): address Greptile review fee..." | Re-trigger Greptile

Comment thread strix/skills/protocols/snmp.md
Comment thread strix/skills/protocols/snmp.md Outdated
Comment thread strix/skills/protocols/snmp.md
Covers community string guessing, MIB walking, write access abuse,
SNMPv3 weaknesses, credential extraction, and trap abuse.

Closes usestrix#993
- Move operator approval warning BEFORE destructive SET examples so
  agents encounter the gate before the commands
- Add safe autonomous write confirmation using benign sysContact
- Fix authNoPriv description: scoped PDU data is unencrypted, but
  auth passwords are NOT transmitted in plaintext (HMAC-based)
- Add Tooling section documenting prerequisites (snmp package,
  onesixtyone) and noting nmap NSE scripts need no installation
@bearsyankees

Copy link
Copy Markdown
Collaborator

@greptile

Comment on lines +138 to +139
snmpset -v2c -c <write_community> <target> 1.3.6.1.2.1.1.4.0 s "strix_write_test"
snmpget -v2c -c <read_community> <target> 1.3.6.1.2.1.1.4.0 # Confirm change

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 security Write validation leaves persistent state

When an autonomous agent validates a writable SNMP endpoint, this sequence replaces the device's existing sysContact value with strix_write_test but never preserves or restores the original value, leaving administrative contact information modified after the scan. How this was verified: The autonomous validation sequence contains only the write and confirmation commands, and no applicable agent guidance supplies a restoration step.

Knowledge Base Used: Skills Library

Prompt To Fix With AI
This is a comment left during a code review.
Path: strix/skills/protocols/snmp.md
Line: 138-139

Comment:
**Write validation leaves persistent state**

When an autonomous agent validates a writable SNMP endpoint, this sequence replaces the device's existing `sysContact` value with `strix_write_test` but never preserves or restores the original value, leaving administrative contact information modified after the scan. **How this was verified:** The autonomous validation sequence contains only the write and confirmation commands, and no applicable agent guidance supplies a restoration step.

**Knowledge Base Used:** [Skills Library](https://app.greptile.com/strix-org-3/-/custom-context/knowledge-base/usestrix/strix/-/docs/skills-library.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.


## Tooling

The Strix sandbox includes `nmap` (with NSE scripts). Additional tools may need installation:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Hydra prerequisite remains undocumented

When an agent selects the documented Hydra community-string guessing command, the standard sandbox has no Hydra binary and this prerequisites section provides no installation instruction, so the command terminates with hydra: command not found instead of testing the target.

Knowledge Base Used: Skills Library

Prompt To Fix With AI
This is a comment left during a code review.
Path: strix/skills/protocols/snmp.md
Line: 226

Comment:
**Hydra prerequisite remains undocumented**

When an agent selects the documented Hydra community-string guessing command, the standard sandbox has no Hydra binary and this prerequisites section provides no installation instruction, so the command terminates with `hydra: command not found` instead of testing the target.

**Knowledge Base Used:** [Skills Library](https://app.greptile.com/strix-org-3/-/custom-context/knowledge-base/usestrix/strix/-/docs/skills-library.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

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