feat(sigma): Jenkins detections (product: jenkins)#22
Merged
Conversation
New detections/sigma/jenkins/ platform dir mirroring the htpx Jenkins CI/CD pairs — the first product: jenkins logsource. The Jenkins Audit Trail plugin log is request-URI/line-based (not structured JSON), so these use Sigma `keywords` matching; all three lint clean and compile to Splunk: - jenkins_script_console — /script / /scriptText (T1059) - jenkins_api_token_created — generateNewToken (T1098) - jenkins_job_backdoor — /createItem / /configSubmit (T1072) Also wire the dir into the deploy-form generator: add `jenkins` to gen-siem.sh's NONWIN_DIRS and regenerate savedsearches.generated.conf (now 46 rules) so the drift gate stays green. README: new jenkins/ section, logsource note, count 43→46. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011spYcGfeP4a3RNQQVDrGtW
Address Copilot review: the keyword model matched bare substrings, so `/configSubmit` also caught the global system-config form and `generateNewToken` could overmatch. Switch the three jenkins/ rules to a `uri` field: - jenkins_script_console — uri|contains /scriptText, /script - jenkins_api_token_created — uri|contains ApiTokenProperty/generateNewToken - jenkins_job_backdoor — /createItem OR (uri|contains|all /job/ + /configSubmit), scoping the reconfigure match to job URIs Regenerated savedsearches.generated.conf; sigma check + convert + gen-siem --check all green. README: scoped rows + corrected detection-model note. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011spYcGfeP4a3RNQQVDrGtW
There was a problem hiding this comment.
Pull request overview
Adds initial Jenkins Sigma detection coverage (Audit Trail plugin, product: jenkins, service: audit) and wires it through the SIEM generation pipeline so Splunk saved searches are generated/kept in sync.
Changes:
- Introduces 3 new Jenkins Sigma rules using keyword/URI matching for unstructured Audit Trail log lines.
- Adds
jenkinsto the SIEM generator’s non-Windows platform directory list and regenerates Splunksavedsearches.generated.conf. - Updates
detections/README.mdto document the new Jenkins platform section and updated rule/document counts.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| detections/sigma/jenkins/jenkins_script_console.yml | New Jenkins rule detecting Script Console access via /script / /scriptText. |
| detections/sigma/jenkins/jenkins_job_backdoor.yml | New Jenkins rule detecting job creation/reconfiguration-related endpoints. |
| detections/sigma/jenkins/jenkins_api_token_created.yml | New Jenkins rule detecting API token creation activity. |
| detections/siem/splunk/savedsearches.generated.conf | Regenerated Splunk saved searches to include the new Jenkins rules. |
| detections/siem/gen-siem.sh | Adds jenkins to NONWIN_DIRS so the generator includes the new platform directory. |
| detections/README.md | Documents the Jenkins logsource and updates rule/document counts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Round 13 — Jenkins CI/CD (Defense mirror)
New
detections/sigma/jenkins/platform dir mirroring the htpx Jenkins pairs — the firstproduct: jenkinslogsource. The Jenkins Audit Trail plugin log is request-URI/line-based (not structured JSON), so these use Sigmakeywordsmatching.jenkins_script_console/script//scriptTextjenkins_api_token_createdgenerateNewTokenjenkins_job_backdoor/createItem//configSubmitAlso wires the new dir into the generator:
jenkinsadded togen-siem.sh'sNONWIN_DIRS,savedsearches.generated.confregenerated (now 46 rules) so the drift gate stays green.Gate (run locally, pinned to CI)
sigma check --fail-on-issues -c detections/sigma-validation-config.yml detections/sigma/→ 0 issuesdetections/sigma/convert.sh splunk→ compilesdetections/siem/gen-siem.sh --check→ up to dateREADME: new
jenkins/section, logsource note (…|terraform|jenkins), rule count 43 → 46.🤖 Generated with Claude Code
Generated by Claude Code