-
Notifications
You must be signed in to change notification settings - Fork 52
chore: Add ObjectID to ComputerStatus #251
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
base: v4
Are you sure you want to change the base?
Conversation
WalkthroughAdds ObjectId to CSVComputerStatus and propagates it across multiple processors and status reports. Updates CSV serialization to include ObjectId. Changes method signatures for DCLdapProcessor.Scan, SmbProcessor.Scan, and ComputerAvailability.IsComputerAvailable to accept/passthrough identifiers. Updates related unit tests to match new signatures. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Caller
participant Processor
participant CSVComputerStatus as CSV Status
participant StatusSink as Status Channel
Caller->>Processor: Scan/IsComputerAvailable(..., objectId)
rect rgba(230,245,255,0.6)
note right of Processor: Prepare status with ObjectId
Processor->>CSVComputerStatus: new {..., ObjectId}
CSVComputerStatus-->>Processor: ToCsv() now includes ObjectId
end
Processor->>StatusSink: Send(status CSV with ObjectId)
StatusSink-->>Caller: Acknowledgement/Result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (12)
🧰 Additional context used🧬 Code graph analysis (7)src/CommonLib/Processors/SmbProcessor.cs (6)
src/CommonLib/CSVComputerStatus.cs (2)
src/CommonLib/Processors/LocalGroupProcessor.cs (4)
src/CommonLib/Processors/CertAbuseProcessor.cs (2)
src/CommonLib/Processors/UserRightsAssignmentProcessor.cs (3)
src/CommonLib/Processors/ComputerAvailability.cs (3)
src/CommonLib/Processors/DCLdapProcessor.cs (5)
🔇 Additional comments (20)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Adding ObjectId to ComputerStatus
Motivation and Context
Resolves: BED-6568
How Has This Been Tested?
This has been tested by creating a build of SharpHound with the updated library, and using running a collection.
Screenshots (if appropriate):
Types of changes
Checklist:
Summary by CodeRabbit