Reducing risk while maintaining legacy applications
Reducing risk while maintaining legacy applications 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 risk while maintaining legacy applications helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Security architecture describes assets, identities, trust boundaries and the controls expected between components. Documentation is useful when it reflects real deployment and helps reviewers test important assumptions, rather than simply listing products or broad intentions.
Legacy applications are applications that are recognized as being outdated but remain in active use by an organisation. This may occur if a viable alternative to the application is not available, replacement is currently too expensive, or if the application is highly bespoke and services a very niche role within an organisation's digital ecosystem. Legacy applications often introduce significant security risks to an organisation for the following reasons:
At a baseline, organisations should have a clear understanding about what legacy applications are currently in use and what the expected risk of the use of these legacy solutions are.
Why it matters
Consider a realistic failure: a legacy service remains essential but lacks a clear owner, support plan or controlled route to replacement.
An undocumented trust assumption can leave a feature depending on a check that no component actually performs. Gaps may span applications, services and operational processes, making ownership and verification especially important.
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.
- Map sensitive data and consequential operations.
- Identify the component responsible for each security decision.
- Compare documented trust relationships with deployment and code.
- Record assumptions, exceptions and evidence of enforcement.
How to fix it
Use the appropriate maintained mechanisms and verify the result in the actual production configuration.
- Legacy applications might have reached End-of-Life (EoL) meaning that the application no longer receives patching or vendor support. This drastically increases the risk of vulnerability in the application being left in an exploitable state.
- Some applications have been built using technologies that are no longer conventionally used or taught to technical staff. This can mean that the knowledge required to troubleshoot or fix vulnerabilities when they arise may be lacking.
- Legacy applications may produce data in custom formats and/or use old interfaces or networking protocols. This may stifle efforts to use data produced by the application with services used for vulnerability management or security logging, such as a SIEM (Security Information and Event Management) solution.
- What information is handled/stored by the application? If this information were to be compromised, how would this impact your business and potentially its regulatory/compliance requirements?.
- Reduce unnecessary trust and privilege between components.
- Verify important requirements through focused review and testing.
A diagram or checklist is planning evidence, not proof that a control works. Assurance comes from connecting the stated requirement to implementation and observed behaviour.
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.
Related issues
- Reducing the impact of stolen application cookies
- Deploying and maintaining an effective Content Security Policy
- Maintaining TLS cipher configuration for application services
Read about our methodology or contact pentested.com to discuss secure development and code review.