Hi I was wondering how I could get the code directory hash string of an app given its audit token. I would like to do this in Swift. Thanks.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi, I have an endpoint security app and I was wondering what is the best way to check if a process was signed by a specific Developer ID certificate. Lets say im subscribed to auth_exec events and wanted to deny execution of processes signed with Developer ID Application: Adobe Inc.
Would obtaining the common names of the certificate with SecCertificateCopyCommonName and then comparing strings be the right way or am I missing something?
Hi, I was wondering if there is something similar to NSObject's value(forKey:) for structs. I need to get a structs attribute by name and I don't want to turn my structs into classes, inherit from NSObject and use @objc in my attributes as I think it doesn't look good.
I also read that you can use Mirror and use the children property to iterate the attributes but given that performance is important in my case it doesn't look like a good option.
Any help would be appreciated, thanks!
Hi, Im new to SwiftUI and Im trying to implement some drag and drop functionality for some tabs in my application.
Im using .draggable(_) and .dropDestination for this and the issue I have is that as I drag the view, the mouse cursor changes to the copy cursor with the green plus sign and I don't like it but I can't figure out how to avoid it.
Any help would be appreciated.
Hi, I am developing an Endpoint Security extension and I would like to get the full list of processes that ended up calling the process I receive in an event.
For example if I receive a es_process_t I have this process audit token, I would like to get the parents audit token and then the parent's parent token and so on till I get the full list of processes. I hope i made myself clear :)
Hi, I was wondering if it was possible to get a notification when there is a change to the forced defaults that my app uses. This forced defaults are sent via MDM using the com.apple.ManagedClient.preferences payload type. I've seen that UserDefaults.didChangeNotification is available but it only works if the change is made from inside the app and not if the payload gets updated by the MDM.
class MySettings {
private let defaults = UserDefaults(suiteName: "com.myapp.app.mysettings")
init() {
// Somehow register for notifications
}
func defaultsChanged() {
// This would be called when the defaults change
}
}