How to use security profiles

You can use security profiles to automatically audit and fix your managed instances on a schedule using the Ubuntu Security Guide (USG).

Note

This feature is only available in self-hosted Landscape 25.04 and later.

Create a security profile

On each instance you want to manage, follow the steps in Ubuntu Security’s installation guide, then:

  1. Edit the client configuration file /etc/landscape/client.conf, add this line:

    include_manager_plugins = UsgManager
    

    If your client.conf already includes an include_manager_plugins line, then add UsgManager to it. For example:

    include_manager_plugins = ScriptExecution,UsgManager
    
  2. Restart Landscape Client:

    sudo systemctl restart landscape-client
    

From the web portal:

  1. Click Profiles

  2. Click Security profiles

  3. Click Add security profile

In the security profile creation form, complete the following fields:

  • Profile name: Name of the profile

  • Access group: The access group the profile will apply to. Restricts which instances the profile can manage and which users can edit and execute the profile.

  • Base profile: The security benchmark the profile will use. See the Ubuntu Security’s type of compliance for more information.

  • Mode: The profile’s mode – which actions it will perform on instances. “Audit” will only execute compliance audits, “Fix and audit” will also attempt to modify instances to fix failing compliance tests, and “Fix, restart, audit” will restart instances after modifying them.

  • Upload tailoring file: A benchmark customization file. If provided, it supersedes the Base profile.

  • Schedule:

    • On a date: A specific date and time at which the profile will execute once

    • Recurring: A start date and end date between which the profile will execute repeatedly, with the provided number of days between executions. The recurrence cannot be more frequent than once every seven days.

  • Association:

    • Associate to all instances: The profile will affect all instances in the same access group as the profile

    • Tag(s): Only instances having the specific tag(s), in the same access group as the profile will be affected

After you’ve created your security profile, you can view, download audit reports, edit, run, duplicate, or archive it using the dot menu under Actions.

Download audit for a security profile

You can download the results of USG audits executed by your security profile for a specific date or for a range of dates.

From the web portal:

  1. Click Profiles

  2. Click Security profiles

  3. Click the menu dots under Actions for a profile

  4. Click Download audit

In the download audit form, complete the following fields:

  • Audit timeframe:

    • Specific date: A date on which the profile ran

    • Date range: A start date and end date between which all profile run results will be collected into a single report

  • Level of detail:

    • Summary only: The report will only include the overall pass rate for each instance

    • Detailed view: The report will also include individual audit rules and their severity, references, description, and rationale

You report will be generated and you will see a notification “Your requested audit is ready”. Click Download audit to download the report CSV file.