Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

WAF as a Service
Results will update as you type.
  • What's New in the Barracuda WAF-as-a-Service
  • Understanding the Global Infrastructure
  • Application Security Insights
  • Getting Started
  • Configuring WAF-as-a-Service
  • Managing Your Account
  • Components
    • Adding or Removing a Component
    • Application Profiles
    • API Dashboard
    • API Discovery
    • Bot Protection
    • Caching and Compression
    • Clickjacking Protection
    • Client Certification Authentication
    • Client-Side Protection
    • Content Delivery Network (CDN)
    • Cookie Security
    • Data Theft Protection Policy
    • Distributed Denial of Service (DDoS)
    • Header Allow/Deny Rules
    • IP Address Geolocation
    • Log Export
    • Log Masking
    • Parameter Protection
    • Request Limits
    • Response Cloaking
    • Response Pages
    • Application Snapshots
    • Traffic Rewrite
    • Trusted Hosts
    • URL Access and Redirects
    • URL Normalization
    • URL Protection
    • Violation Responses - Policy Options
    • Violation Responses - Response Policies
    • Violation Responses - Manage Locked Out Clients
  • Tips and Troubleshooting
  • Reports
  • Barracuda WAF-as-a-Service and CloudGen Access
  • Critical Vulnerabilities
  • WaaS API Version 4
  • Traffic Evaluation in Passive Mode
  • Barracuda WAF-as-a-Service Vulnerability Database
  • LLM Security

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    API Discovery
    Published Jan 09

    API Discovery

    Subscribe

    Overview

    API discovery analyzes application traffic to identify API endpoints and their associated payload structures. This information is essential for creating effective security rules, including API profiles and key profiles. By accurately identifying and understanding the characteristics of each API endpoint, organizations can implement security measures that protect against unauthorized access and potential vulnerabilities.

    Once these security rules are established, all incoming API requests are validated against the defined profiles. This validation ensures that only compliant traffic is allowed, thereby strengthening the application's overall security posture and reducing the attack surface.

    Before you enable API Discovery, ensure that Enable Advanced Bot Protection is set to ON on the BOT PROTECTION > Dashboard page.

    Examples:

    Endpoint: URL: /api/v1/users Method: GET Discovered Keys: None (GET requests do not have a payload)

     

    Endpoint: URL: /api/v1/users/* Method: GET Discovered Keys: None (GET requests do not have a payload)

     

    Endpoint: URL: /api/v1/users/*/posts/* Method: GET Discovered Keys: None (GET requests do not have a payload)

     

    Endpoint: URL: /api/v1/users Method: POST Discovered Keys: name email password Payload: { "name": "Alice Johnson", "email": "alice@example.com", "password": "securepassword123" }

     

    Endpoint: URL: /api/v1/users/* Method: PUT Discovered Keys: name email Payload: { "name": "Alice Johnson", "email": "alice.johnson@example.com" }

     

    Endpoint: URL: /api/v1/users/*/posts Method: POST Discovered Keys: title content Payload: { "title": "My First Post", "content": "This is the content of my first post." }

    The image below illustrates all the request payloads referenced in the examples above.

    Request_Payload.png

     

    Traffic Analytics

    Traffic analytics provides information about the discovered API endpoint that helps the administrator to understand the traffic pattern. Barracuda-WAF-as-a-Service analyses traffic patterns for multiple days to discover relevant characteristics of the API endpoint and the associated structure.

    A confidence factor is associated with each discovered endpoint and parameter. This confidence factor indicates the stability of the discovered entity. If the discovered characteristics of the entity do not vary significantly then the confidence factor will be high. The confidence factor is determined based on “Advanced API Discovery Engine”, which is further used to create API profiles.

    Confidence Level

    Description

    Confidence Level

    Description

    60-75% (Moderate)

    The discovered endpoint still has scope for analysis after which the confidence level may change.

    76-85% (Confident)

    The discovered endpoint is stable and JSON profile/Key profiles are recommended based on this confidence.

    86-100% (Very Confident)

    The discovered endpoint's characteristics do not vary significantly and JSON Profile/Key Profiles are recommended based on this confidence.

    API Profile

    An API profile consists of two parts. The first part represents the API endpoint while the second captures information about each individual key and value that are a part of the API payload.

    The endpoint of the API is represented by a JSON Profile which captures details such as content-type, HTTP method, keys/params, security policy associated with the profile, etc. API profiles are generated/created when the Barracuda WAF-as-a-Service discovers API endpoints in the application.

    Information related to the parameters and its values is captured in the Key Profile. It has information such as value type (String, Number, Array or Object), maximum and minimum length of characters/numbers/array elements or number of name/value pairs in the key, value class and allow NULL details of the key.



    API Discovery Overview

    Steps to Enable API Discovery

    To enable API Discovery for an application, do the following:

    1. In the WAF-as-a-Service web interface, click Applications in the left panel.

    2. On the Applications page, click on the application to which you want to enable API Discovery.

    3. On the application page, click API Discovery in the left panel.

    4. On the API Discovery page, click Enable API Discovery.

    5. On the API Discovery Settings pop-up window:

    6. Set API Discovery to Enabled.

    7. Select an option (Automatic or Manual) to create API profiles for the discovered endpoints.:

      1. Automatic – In the Automatic mode, API endpoints and associated structures are learned, and the required security configuration is automatically applied to the discovered API endpoints and structures.

      2. Manual – In the Manual mode, API endpoints are learned, and profiles are displayed under API Discovery for review. You can review the endpoints, its structure, analytics information and apply the configuration.

    8. Click Save.


    To change the API learning behavior, click Settings on the API Discovery page.

    API Discovery in the Automatic Mode

    When API Discovery is enabled in the Automatic mode, the Barracuda WAF-as-a-Service analyzes the incoming traffic, creates API profiles for discovered endpoints and associated structures that have the higher confidence factor, and applies them automatically. You can view the applied API profiles and key profiles on the Application Profiles page.

    API Discovery in the Manual Mode

    When API Discovery is enabled in the Manual mode, the Barracuda WAF-as-a-Service analyzes the incoming traffic, creates API profiles for discovered endpoints and associated structures, and displays them on the API Discovery page. You can review the URL endpoints, key profiles, and then apply them as needed.

    Note: It is recommended to set API Discovery in the Manual mode.

    Data Classification

    Data classification is the process of labeling the data and categorizing it as High, Medium, or Low based on its type, sensitivity, and business value. The classified data for a given endpoint can help the administrator to apply appropriate security policies and safeguard the data.

    The Barracuda WAF-as-a-Service analyzes the API transactions asynchronously and recognizes Personal Identifiable Information (PII) entities in the data that is sent as the response to the client. Later, the recognized data is categorized into various sensitivity levels (High, Medium, or Low) and displayed for each endpoint under DATA CATEGORY on the API Discovery web interface.

    • High Sensitivity - Confidential data such as personal details, financial records, etc. Example: Credit Card Number, SSN, Bank details.

    • Medium Sensitivity - Data intended for internal use only, such as emails and documents with no confidential data. Examples: Email addresses, Phone numbers, etc.

    • Low Sensitivity - Data intended for public view. Examples: URLs, Vehicle registration number, etc.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 30, "requestCorrelationId": "e8a43822ca754fda9d6fd346a0598486"}