Security implications of user owned directory in /Applications I was checking the content of /Applications and I saw that some directory are owned by root and some are owned by myUser.
Eg:
$ cd /Applications
$ ls -l
$ drwxr-xr-x   3 myUser  admin   96 Sep  1 11:30 myApp
$ drwxr-xr-x   3 root  wheel   96 Sep  1 11:30 myOtherApp

Are they any security implications of having an user owned directory in /Applications?
Maybe I am wrong but if the directory is not root owned, then any script can just change its content and swap the binary for example. Same for any directory in /myUser/Applications.
Or does macOS have an integrity protection for that?
On macOS, root doesn’t play much role as any user that is an administrator functions with the same power. When you type any admin user and that admin password in a permission dialog, that makes any user  (even a non-admin user) root.
Some apps have a script or framework to change ownership to root, others don’t change it (like when you copy an app from Downloads or a disk image)
The information you show makes no difference security wise. This is just permissions on a folder and package that anyone can read and execute. Other mechanisms check for known bad software and validate that parts of the application have not been tampered with.