sharepoint online – How to programmatically check if site permissions are modified?

I am working on building a report where I need the list of all the sites whose permissions got updated in the last 7 days or any specific period and we have some business logic to perform once we have the sites.

I am using CSOM as we are using SharePoint Online. We need to track classic and modern sites.

Do we have any specific Web level property which we can use to track the above change?