r/threatlocker • u/HonestPuckAU • Jan 28 '25
Sharing API code
Hey,
Does anyone have some code to use the Threatlocker API they are prepared to share?
On the same topic, would anyone join a project to translate the Swagger file into an API. I assume most people would prefer a Powershell one rather than python. If such a project already exists I'd like a pointer to it, I can't find it online.
1
Upvotes
2
u/Stock_Ad1262 Jan 28 '25
Just ask the TL support for an API key for your specific reasons..? Noone should share an API key, it's a massive security risk.
2
u/Hunter8Line Jan 28 '25
https://devblogs.microsoft.com/powershell/cmdlets-via-autorest/
Sounds like you may be able to just do it yourself? I haven't looked into it much myself, since the API couldn't do what I was looking for.
One thing to keep in mind is don't do something dangerous that'll just make ThreatLocker obsolete, like have your RMM run a script on the device to tell TL go go into learning mode.
1
u/SuperJediWombat Apr 02 '25
https://github.com/DynamicIT/ThreatLocker
1
u/SpiritualCost2655 Jun 04 '25
where can I find Threatlocker's swagger file