I've had a few. Not as security attacks.
More just very badly made install scripts, which (in good faith) destroy some part of my operating system.
Messing up repositories added to package manager, creating dependency conflicts, overwriting config files I used. Even removing full folders - "because it's MINE" syndrome. --dry-run modes that are destructive. A lot of install scripts treat my computer as disposable machine meant for their app only.
Technically any app installer can do this. Happens all the time on Windows actually with ms store apps