Secure development

Creating a consistent vocabulary for application security events

Secure implementation: code, settings, gate arranged to illustrate creating a consistent vocabulary for application security events.

Creating a consistent vocabulary for application security events connects a security requirement to the behaviour of a real feature. The relevant controls need to remain effective across custom code, integrations and the production configuration. Understanding consistent vocabulary for application security events helps establish which security property the feature needs and where that property is actually enforced.

What does this involve?

Useful security records describe important actors, resources and state changes without becoming another source of secrets. Their value depends on reliable event coverage, correlation and access protection as well as the volume of information collected.

Each year IBM Security commissions the Ponemon Institute to survey companies around the world for information related to security breaches, mitigation, and the associated costs; the result is called the Cost of a Data Breach Report.

In addition to the millions of dollars lost due to breaches the report finds that the mean time to identify a breach continues to hover around 200 days. Clearly our ability to monitor applications and alert on anomalous behaviour would improve our time to identify and mitigate an attack against our applications.

Why it matters

Consider a realistic failure: two services use different names and meanings for the same event, making correlation unreliable.

Missing or misleading records can delay detection and make an incident harder to reconstruct. Excessive capture can expose credentials or confidential content to people and systems that did not otherwise need it.

Implementation guidance should be applied to a real feature and its deployment. Framework defaults, custom handlers and integrated services all influence whether the intended protection remains effective.

How penetration testers check for it

Trace the relevant feature from its entry point to the data or operation it protects, including custom code and alternate paths.

  • Compare important security events with the records produced.
  • Check actor, resource, outcome and correlation context.
  • Review redaction and resistance to misleading event content.
  • Assess access, integrity and retention.

How to fix it

Use the appropriate maintained mechanisms and verify the result in the actual production configuration.

  • Observability/SRE groups must support the use of this standard and encourage developers to use it.
  • Incident Response must either ingest this data OR provide a means by which other monitoring teams can send a notification of alert, preferably programmatically.
  • Developers must embrace this standard and begin to implement (requires knowledge and intent to understand potential attacks and trap those errors in code).
  • customer: The customer requested their account be locked.
  • Protect log access and important audit records.
  • Verify that monitoring and investigation workflows can use the retained evidence.

A complete request or response is rarely necessary for every event. Capture should be justified by an operational purpose and protected according to the information it contains.

Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.

Read about our methodology or contact pentested.com to discuss secure development and code review.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo