r/PowerShell • u/planedrop • Aug 14 '26
Question Powershell Module "Entra" Typo Squat (slightly suspicious)
Edit: The developer of this got back to me via email and is working on changing his description. While this doesn't make it 100% safe, it's at least somewhat confidence inspiring. The dev put the telemetry in it to figure out who was installing it because he was noticing it was happening a lot. So lines up with my suspicions.
Wanted to get some thoughts from more experience people here if possible, though I have already reported this module.
I did a stupid and tried to Import-Module Entra in Powershell, what I wanted was Microsoft.Entra, but given it used to be called AzureAD my brain just quick inserted Entra.
I realized shortly after this wasn't the right thing and have removed it, but decided to dig on it some more since it's in PS Gallery afterall.
The author claims it "contains no functional code" but the .ps1 file it runs indeed contains telemetry collection code. Nothing directly malicious as far as I could tell, but wanted to see what others think of this.
Maybe they are just trying to collect info to see how many people mistakenly install this to write something about it?
9
u/lan-shark Aug 14 '26
There's a hard-coded API key in the telemetry script lol. Doesn't seem inherently malicious but it's definitely questionable
7
u/Swimming_Office_1803 Aug 14 '26
That telemetry is most likely a counter for the guy to brag how many people his typosquat module saved.
The module itself only does one thing: output a message saying this isn’t the module you’re looking for
6
u/unapologeticjerk Aug 15 '26
TBH, there is a metric shit ton of suspicious and questionable scripts on PS Gallery, but it usually is targeting the lower-hanging fruit with silly shit you'd never consider for Enterprise or "real" environments. It's actually kind of wild how out-dated and dusty a lot of the db looks there.
4
u/BlackV Aug 15 '26 edited Aug 15 '26
This is the whole reason they're moving to acr for official modules (soon tm ), cause they can public their trusted modules there and the random jo smo can publish to the public gallery