News for hackers. Stuff that matters.
Re:"Secret" Agent Exposes Azure Customers to Unauthorized Co... by dspillett on Wednesday September 15, 2021 @06:10AM (#28537297)
I'm going to give some benefit of the doubt and assume¹ that is some sort of stub for dev/test, replaced by one of a selection of proper symmetric encryption options in any production use. Amusing anyway.

¹ Anyone with more spare time than I want to look deeper to confirm or contradict?

Re:"Secret" Agent Exposes Azure Customers to Unauthorized Co... by formerly_proven on Wednesday September 15, 2021 @06:46AM (#28537496)
It's used there: https://github.com/microsoft/omi/blob/e4d72481fa2f805148c9c8...

Also note that neither EncryptData nor DecryptData have any way of passing a key in their API. So it's very unlikely that these implementations could be conditionally compiled in place of a real implementation (but they're the only definition of these functions in the repository anyway).

Re:"Secret" Agent Exposes Azure Customers to Unauthorized Co... by mulander on Wednesday September 15, 2021 @06:59AM (#28537564)
It used to have actual Windows specific crypto code[1] which has been removed in the linked commit.

I assume this has been ported from Windows and later never implemented the ripped out components. That said, I don't know the windows API so apart from confirming that they exist in Windows docs[2] I can't assess how valid their usage was.

[1] - https://github.com/microsoft/omi/commit/edbe231042173018c529...

[2] - https://docs.microsoft.com/en-us/windows/win32/api/dpapi/nf-...

Re:"Secret" Agent Exposes Azure Customers to Unauthorized Co... by dspillett on Wednesday September 15, 2021 @08:24AM (#28538169)
> neither EncryptData nor DecryptData have any way of passing a key

There could have been other smells involved, like the key being held in some more global scope instead of being passed in via the call stack.