Skip to content

Comments

Add new Windows host_unique registry option#930

Merged
KaliPatriot merged 16 commits intospellshift:mainfrom
KaliPatriot:reg-host-unique
May 6, 2025
Merged

Add new Windows host_unique registry option#930
KaliPatriot merged 16 commits intospellshift:mainfrom
KaliPatriot:reg-host-unique

Conversation

@KaliPatriot
Copy link
Collaborator

What type of PR is this?

/kind feature

What this PR does / why we need it:

Adds a new host_unique selector for Windows hosts utilizing the registry. It is not enabled by default due to not being cross-platform. However, it will compile correctly non-Windows imix binaries even when enabled (the selector will return None). Registry keys are typically harder to monitor for changes/reads, which overall increases OPSEC and decreases the likeliness of tampering with host ids.

Which issue(s) this PR fixes:

Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

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

Nice! Great first PR @LByrgeCP !

I'll take another pass on the morning but looks really good!

log = { workspace = true }

[target.'cfg(target_os = "windows")'.dependencies]
winreg = "0.55"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we import winreg at the workspace for some of the eldritch functions.

Switch to using workspace = true to use it.

Doing this keeps all the dependencies on the same version and makes it more manageable.

Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

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

Looks good to me!
Just waiting for tests to pass

@KaliPatriot KaliPatriot merged commit d1c9e9f into spellshift:main May 6, 2025
4 checks passed
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