Audit Logs

Audit Logs for SaaS Enterprise Customers

Audit Logs for SaaS Enterprise Customers

Why they matter, who should use them, and what to expect when you do

Companies use audit logs to trace everything that happens within their organization and across the different IT products they use. 

An audit log (aka “audit trail”) is defined as a security-relevant chronological record. It provides documentary evidence of the sequence of activities that have affected a specific operation, procedure, or event. When a change is applied to a system that correlates with a change in the system’s behavior, that change should be documented in an audit log. Audit logs answer questions about data, security, and system state, so they are crucial for security and compliance, and for tracking systems by multiple organization stakeholders (“activity tracking”). 

As a SaaS vendor, you will find that many prospects require an audit logging feature in your product (regulations require enterprise-grade companies to keep audit logs of all the platforms they use). Your clients will need to manage and review audit logs. Their main use cases will be activity tracking and compliance & security. 

Activity tracking

Management, product, IT and other company stakeholders use activity tracking internally. Management can confirm that system access procedures are followed. Product and dev can see system conditions before an error to prevent future failures. Dev gets more visibility when troubleshooting configuration changes. 

Compliance & Security

Internal compliance. Activity logs help organizations meet stringent internal compliance requirements. This ensures that systems remain stable and that users are held accountable for their actions, which event logs track. 

External compliance. Audit logs are also necessary for external compliance, since companies must adhere to many legal requirements. Industry compliance and certification standards like SOC2 mandate audit logs that conform to strict security, availability, processing integrity, confidentiality and privacy requirements. Failing to meet compliance standards has consequences for accreditation and legal liability. 

Security. Audit logs also capture security-related data and are indispensable for tracking security incidents, even when other prevention and protection solutions are in place. Teams can use audit logs to “replay” events in sequence and understand how a damaging event occurred. For example, an event log will reveal when a user account may have been breached, and if user account privileges were escalated to access specific files or directories with sensitive information.

Audit Logs Considerations

When you implement audit logging for your product, factor in the scale, user personas, use cases, data retention, and privacy and sensitivity issues for their audit trails. Based on our experience, here is a breakdown of each: 

Scale

Scale depends on how many admin actions the product allows, so in most scenarios scale is not that high. Business event logging, which sometimes gets mixed up with system audit logs, can increase scale. For example, if you’re a cybersecurity company that scans user activity and you audit each activity scan, you can reach a HUGE number of logs. That is usually not what audit logs are for, but if it is in your case, plan for the scale.

User Personas

Administrators of the SaaS product will be the principal users and gatekeepers of the audit logs. However, once an issue occurs, CISOs and CIOs might step in to trace back what happened. Compliance managers are also stakeholders, as they’ll need to make sure that the logs meet the level of compliance their organization requires.

Use cases in SaaS Products

Audit log use cases cover a range of insights about the systems’ operations, including traceability on a SaaS account, troubleshooting, and permission enforcement. Here are some common audit log scenarios: 

  1. Log activities performed on the management level of the account. This use case usually applies to any kind of SaaS management app (login, logout, authorizations, user/team management, closing accounts).
  2. Logs on internal product actions performed by the admin on the account. This use case is specific to the product (change of policies, adding/editing/deleting records of different entities within the product, changing alerting settings, adding/editing/removing 3rd party app integrations, changing the look and feel settings).
  3. Logs on automatic asynchronous actions performed in the context of the account. For example, if there’s an engine in the product which periodically runs in intervals of 24 hours (or as set by the vendor or customer) and looks for anomalies or runs different ML models on the data, then we usually add one audit log when the engine starts its scan and another one when it has finished (with free form data on the findings or a link to the finding page).

Retention

Retention of audit logs varies depending on your customers, and is higher for enterprises and lower for small companies. To satisfy audit and/or regulatory requirements, log data needs to be retained for a period of time. As a general rule, storage of audit logs should include 6 months of “hot” storage that allows you to actively search/report on them with your tools, although enterprises usually ask for longer retention. At the end of the hot storage period, companies usually archive logs in cheaper, less accessible storage.

Privacy and sensitivity  

Since they relate to customer data, audit logs need to closely comply with privacy and data sensitivity standards. Here are some scenarios:

  1. PII leakage. Customer and business-sensitive information should not be exposed externally. Add protection layers to avoid this.
  2. GDPR specifies where data should be stored and requires the ability to remove data on a certain person once they ask for it (“right to be forgotten”). GDPR controls must be applied strictly. 
  3. Risk of exposure is on the customers. From a legal standpoint, the company is responsible for its customers’ data and is held accountable for its security.

Conclusion

Audit logs are an essential part of your SaaS application because your customers’ organizations require them. Your ability to play with big players depends on making your product an enterprise-ready SaaS app that meets enterprises’ strict audit log certification and security requirements. 

Developing an audit log feature requires understanding the architecture of your system and its different components. Getting scale, retention, use cases, and the other considerations right is critical to the project’s success. The security and compliance requirements for audit logs add configuration and operational complexity.

In the next posts in this series, we’ll go deeper into these audit log considerations and how to solve them.