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

windows: enrich user details from MemberSid where possible #3707

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

efd6
Copy link
Contributor

@efd6 efd6 commented Jul 14, 2022

What does this PR do?

This attempt to enrich user details from the event_data.MemberSid field if possible and the information is not othewise available.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 requested review from a team as code owners July 14, 2022 07:37
@efd6 efd6 self-assigned this Jul 14, 2022
@efd6 efd6 requested review from cmacknz and faec July 14, 2022 07:37
@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@elasticmachine
Copy link

elasticmachine commented Jul 14, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-07-14T22:50:52.086+0000

  • Duration: 17 min 59 sec

Test stats 🧪

Test Results
Failed 0
Passed 126
Skipped 0
Total 126

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Jul 14, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (4/4) 💚
Files 87.5% (7/8) 👎 -9.451
Classes 87.5% (7/8) 👎 -9.451
Methods 83.146% (74/89) 👎 -5.939
Lines 92.664% (5002/5398) 👍 2.458
Conditionals 100.0% (0/0) 💚

@faec faec removed their request for review July 14, 2022 16:20
Comment on lines 34 to 39
if: ctx.winlog?.event_data?._MemberAccountType != null
- remove:
field: _user
field: winlog.event_data._MemberAccountType
ignore_missing: true
ignore_failure: true
if: ctx.user?.roles != null && ctx.winlog?.event_data?._MemberAccountType != null && ctx.user.roles.contains(ctx.winlog.event_data._MemberAccountType)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally I'd use an on_success attribute for this, but I don't think that exists.

@efd6 efd6 merged commit 02dbf8d into elastic:main Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:windows Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Events | Resolve MemberSid
3 participants