News for hackers. Stuff that matters.
Re:macOS now scans for malware whenever it gets a chance by Sirened on Thursday September 01, 2022 @04:14PM (#32682432)
this might be dumb, but why do we even use scanning in this day and age? Why not use kernel callbacks which notify when executables and files load for, say, the first time after being modified? Surely that'd be less race-y and waste less battery?
Re:macOS now scans for malware whenever it gets a chance by SmellyPotato22 on Thursday September 01, 2022 @06:07PM (#32683966)
Totally that's why Apple made endpoint security for security vendors. You can even pipe the events from the kernel with "sudo eslogger exec | jq" on the new macOS

https://developer.apple.com/documentation/endpointsecurity

Re:macOS now scans for malware whenever it gets a chance by zibby8 on Thursday September 01, 2022 @04:50PM (#32682984)
What if the list of known malware changes to include a file already on the computer?
Re:macOS now scans for malware whenever it gets a chance by Sirened on Thursday September 01, 2022 @09:50PM (#32685685)
Sure, scan when definitions change, but as the author notes:

> Adload for a period of 8 seconds, once or so each day

They're scanning daily irrespective of signature updates, which makes no sense.

Re:macOS now scans for malware whenever it gets a chance by Godel_unicode on Friday September 02, 2022 @02:28AM (#32687275)
Can’t speak to Apple’s solution specifically, but most AV will have several signature updates in a day.
Re:macOS now scans for malware whenever it gets a chance by fomine3 on Thursday September 01, 2022 @09:48PM (#32685673)
Anyway it's loaded when it's executed/used
Re:macOS now scans for malware whenever it gets a chance by jokethrowaway on Thursday September 01, 2022 @04:16PM (#32682467)
They already do it, that's all the notifications when you first run an executable.
Re:macOS now scans for malware whenever it gets a chance by kube-system on Thursday September 01, 2022 @05:01PM (#32683135)
I just 'executed' an eicar test file in a terminal and nothing stepped in.
Re:macOS now scans for malware whenever it gets a chance by simonh on Thursday September 01, 2022 @05:24PM (#32683450)
If you have XProtect active, it should step in if you try and open the EICAR file in a text editor. It may not if you try and “run” the file because it’s not an executable binary. Have you disabled Gatekeeper?
Re:macOS now scans for malware whenever it gets a chance by Sirened on Thursday September 01, 2022 @04:18PM (#32682490)
Right, which is why I'm baffled as to why they'd introduce scanning in 2022
Re:macOS now scans for malware whenever it gets a chance by melony on Thursday September 01, 2022 @04:23PM (#32682585)
In case of zero days, the AV can block the file before it exploits the kernel (or whatever other vector)
Re:macOS now scans for malware whenever it gets a chance by GekkePrutser on Thursday September 01, 2022 @04:44PM (#32682896)
But this doesn't scan for zero-days, only for several major known malwares.

If you want to catch real zero-days, you have to approach things very differently. Do behavioral analytics, seeing what a process is up to and if it's poking into things it shouldn't.

Many leading AV suppliers like SentinelOne, Cylance, Crowdstrike do this and are very successful at it. However Apple is just starting in the antimalware market so I forgive them that they're just scanning for some known-bads for now.

Re:macOS now scans for malware whenever it gets a chance by Sirened on Thursday September 01, 2022 @09:47PM (#32685670)
I'm honestly not convinced any of these vendors are able to do anything about zero days either. They mostly seem to try and catch post exploitation and trying to detect "weird shit" happening post compromise (persistence, exfiltration, etc.). No AI/ML security product is going to stop someone from throwing a kernel exploit a disappearing into the night.
Re:macOS now scans for malware whenever it gets a chance by radicaldreamer on Thursday September 01, 2022 @05:05PM (#32683192)
I'm sure it works a lot better when alerts result in a human looking at the issue.
Re:macOS now scans for malware whenever it gets a chance by NateLawson on Thursday September 01, 2022 @04:51PM (#32683012)
A semi-legit app can later drop malicious code and run it. Think of a repackaged OSS project or pirated software that has an auto-updater built in.
Re:macOS now scans for malware whenever it gets a chance by lalopalota on Thursday September 01, 2022 @05:24PM (#32683449)
which would be a new file, or one that has been modified since it was last run. which would be handled by the first run protection.
Re:macOS now scans for malware whenever it gets a chance by cma on Thursday September 01, 2022 @10:48PM (#32686016)
Browsers can generate machine code and make it executable (for e.g. V8), and so can any other app. So they could download it and put it into newly allocated executable memory pages.
Re:macOS now scans for malware whenever it gets a chance by simonh on Thursday September 01, 2022 @05:26PM (#32683475)
It will catch an infected file that simply passes through the computer without being opened or executed.
Re:macOS now scans for malware whenever it gets a chance by robryk on Thursday September 01, 2022 @05:30PM (#32683535)
What do you mean by "passes"? Unless it's a file on a removable medium or a remote fs, it has to be created, which requires opening it. Scanning removable media upon insertion and remote fses upon mounting is going to look mighty suspicious and, in the latter case, be cover for data exfiltration.