Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Refactor the `risk` property of `detection_abstract` to handle observable/risk/threat mappings more transparently

Open
#247 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Locate the detection_abstract implementation and SES_OBSERVABLE_TYPE_MAPPING, then review how observable types, roles, risks, and threats are currently connected. Read PR #234 for the related user/Attacker behavior. Done means the mapping is transparent and user observables resolve to the intended user threat type rather than an unintended risk or other type.

Written by the indexing model from the issue text.

Description

bug
  • The mappings between risk types and observable types/roles is complicated, confusing, and prone to logical errors and edge cases
  • We should refactor it to be a transparent mapping between observable types (as in SES_OBSERVABLE_TYPE_MAPPING) and risk/threat types
  • For example, we have users as Attackers in many detections
    • Currently, these get mapped to risks instead of threats unintentionally
    • Lou's PR (#234) will address this, but even then, user threat object will get the type other instead of user
Dominant language
Python
Stars
139
Forks
51
Avg merge
1h 16m
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from splunk/contentctl

All issues in splunk/contentctl

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.