BIG-IP Access Policy Manager (APM) Best Practices and System Insights
Executive Summary
The BIG-IP Access Policy Manager (APM) serves as a centralized solution for authentication, authorization, and Single Sign-On (SSO) across various application environments, including cloud, SaaS, and enterprise web applications. Utilizing a Full Proxy Architecture, the system provides a comprehensive security stack ranging from Layer 4 firewalling to Layer 7 application health monitoring. A critical component of the BIG-IP ecosystem is its ability to handle secure smart card authentication (CAC/PIV) through On-Demand Certificate Authentication (ODCA). While ODCA offers significant flexibility and "step-up" authentication capabilities, it remains susceptible to session hijacking via Man-in-the-Browser (MITB) attacks. For APM high availability, F5 supports an active-standby pair of two BIG-IP systems. Other BIG-IP services can use application and device clustering, subject to their own product guidance. F5 APM clustering guidance. [1]
BIG-IP APM Architecture and Capabilities
Full Proxy Architecture
The BIG-IP APM operates on a Full Proxy Architecture, allowing it to inspect and manage traffic at every layer of the communication stack between the client and the server. [1]
| Layer | Security and Performance Functions [1] |
|---|---|
| Network | L4 Firewall: Full stateful policy enforcement and TCP DDoS mitigation. [1] |
| Session | SSL inspection and SSL DDoS mitigation. [1] |
| Application | HTTP proxy, HTTP DDoS mitigation, and application security. [1] |
| Web Application | Application health monitoring and performance anomaly detection. [1] |
Access Solutions
The APM provides a centralized point for enforcing access policies across diverse platforms: [1]
- Target Applications: Enterprise apps (Web/API), Cloud/SaaS, Partner apps, and Mobile apps. [1]
- Core Functions: Remote access, Identity Federation, SSO, and Secure Web Gateway. [1]
- Deployment Options: Available as a Virtual Edition, Chassis-based system, or hardware appliance. [1]
Authentication and Protocol Flows
General Access Protocol Flow
The standard interaction between a client and the APM follows a specific redirect-based sequence to establish a session: [1]
- Initial Request: The client sends a request for a specific resource (e.g., /foo). [1]
- Redirection: The APM immediately redirects the client to /my.policy and sets an MRHSession cookie. [1]
- Policy Evaluation: The client requests /my.policy using the provided cookie, then proceeds through APM policy evaluation. [1]
- Final Redirection: Once authorized, the client is redirected back to the original resource (/foo). [1]
- Access: The client requests the resource with the session cookie, and the APM performs SSO to the backend server. [1]
Smart Cards and On-Demand Certificate Authentication (ODCA)
In the cited F5 APM Best Practices flow, ODCA requests client certificates from CAC/PIV smart cards through SSL renegotiation. This sequence is version- and configuration-specific; F5's BIG-IP 17.5 ODCA procedure states that TLS 1.3 is disabled by default for that configuration. See F5's versioned ODCA guidance. The documented flow is: [1]
- SSL Initiation: The client initiates an SSL session. [1]
- Server Certificate: The Local Traffic Manager (LTM) presents the server certificate from the clientssl profile. [1]
- VPE Evaluation: The SSL session is established, and the client begins evaluation by the APM VPE. [1]
- SSL Renegotiation: The ODCA agent triggers an SSL renegotiation, prompting the client browser for a certificate. Available certificates are filtered by the "Advertised Certificate Authorities" in the clientssl profile. [1]
- User PIN: The client selects a certificate, and the smart card software prompts for a PIN to decrypt the private key. [1]
- Verification: The F5 system verifies the client certificate against the "Trusted Certificate Authorities" bundle. [1]
- Granting Access: Upon successful verification, the client is allowed access to the application. [1]
Best Practices and Security Considerations
Advantages of ODCA
- Flexibility: It has been a reliable method for CAC/PIV authentication for many years. [1]
- Step-up Authentication: Users can browse unrestricted areas of a site and are only prompted for a certificate when attempting to access restricted resources. [1]
- Fallback Options: It supports alternative authentication methods, such as username and password, if certificate authentication is not possible. [1]
Security Vulnerabilities
A documented ODCA risk is session hijacking when a man in the browser is present. [1]
- Man-in-the-Browser (MITB): If a client's browser is compromised by MITB malware, the attacker can steal the session cookie. [1]
- Session Resumption: Stolen cookies can be used by an attacker to resume a valid session, bypassing the initial authentication protections. [1]
System Scaling and High Availability
F5 describes all-active application scaling for some BIG-IP deployments through Application Service Clustering and Device Service Clustering. That generic architecture must not be applied to BIG-IP Access Policy Manager: F5 documents APM as supported only as an active-standby pair of two BIG-IP systems, not in an active-active configuration. F5 BIG-IP device service clustering guidance.
- Application Service Clustering: This focus is dedicated to application-level scalability and ensuring high availability for specific services. [2]
- Device Service Clustering: This mechanism is designed to scale application delivery services across multiple BIG-IP devices while ensuring that application policies remain synchronized across the cluster. [2]
Technical Appendix: Cipher List Processing
For advanced traffic inspection, the system can utilize scripts to parse TLS payloads. An example includes defining "GREASE" values (e.g., 0a0a, 1a1a, 2a2a) to be excluded from cipher lists and using binary scans to identify session ID lengths and field offsets within the TLS handshake. [1]
Sources cited in this edition
- [1] BIG-IP APM Best Practices - F5 · Original source link unavailable · View highlighted passage · Download local copy
- [2] BIG-IP System - F5 · Original source link unavailable · View highlighted passage · Download local copy
Also cited: the linked F5 APM clustering and F5 BIG-IP 17.5 ODCA product documentation.
Additional notebook sources, not cited in this F5 report
- [3] Deploying BIG-IP GTM with APM for Global Remote Access - F5 · Original source link unavailable · View highlighted passage · Download local copy
- [4] Driving Zero Trust architecture and massive 50% cost savings for NovaGroup - Palo Alto Networks · Original source link unavailable · View highlighted passage · Download local copy
- [5] GlobalProtect Datasheet - Palo Alto Networks · Original source link unavailable · View highlighted passage · Download local copy
- [6] Integrate Palo Alto Networks GlobalProtect with Okta · Original source link unavailable · View highlighted passage · Download local copy
- [7] Large Scale VPN (LSVPN) - Palo Alto Networks | TechDocs · Original source link unavailable · View highlighted passage · Download local copy
- [8] Palo Alto Networks Administrator's Guide - TJAM · Original source link unavailable · View highlighted passage · Download local copy
- [9] PALO ALTO NETWORKS PCNSE STUDY GUIDE: EARLY ACCESS - Savant Solutions · Original source link unavailable · View highlighted passage · Download local copy
- [10] Security Tool Comparison: F5 vs Cisco Anyconnect - Twingate · Original source link unavailable · View highlighted passage · Download local copy
- [11] Split Tunnel Use Case: Optimize Office 365 Traffic - Palo Alto Networks | TechDocs · Original source link unavailable · View highlighted passage · Download local copy
- [12] SSL VPN to ZTNA Migration Guide - Fortinet Community · Original source link unavailable · View highlighted passage · Download local copy
- [13] Troubleshooting GlobalProtect - Palo Alto Knowledge Base · Original source link unavailable · View highlighted passage · Download local copy
- [14] What is F5 BIG-IP Edge Client? - SPOTO Official Blog · Original source link unavailable · View highlighted passage · Download local copy