rules/findings/entra/users/eid-stay-signed-policy-disabled.json

{
  "provider": "EntraID",
  "serviceType": "General",
  "serviceName": "Microsoft Entra ID",
  "displayName": "Ensure the option to remain signed in is hidden",
  "description": "The option for the user to \u0060Stay signed in\u0060 or the \u0060Keep me signed in\u0060 option will prompt a user after a successful login, when the user selects this option a persistent refresh token is created. Typically this lasts for 90 days and does not prompt for sign-in or Multi-Factor.",
  "rationale": "Allowing users to select this option presents risk, especially in the even that the user signs into their account on a publicly accessible computer/web browser. In this case anyone with access to the profile said users utilized would have access to their account when directing the web browser to office.com.",
  "impact": "Once you have changed this setting users will no longer be prompted upon sign-in with the message \u0060Stay signed in?\u0060. This may mean users will be forced to sign in more frequently. Important: some features of SharePoint Online and Office 2010 have a dependency on users remaining signed in. If you hide this option, users may get additional and unexpected sign in prompts.",
  "remediation": {
    "text": "###### From Azure Portal\r\n\t\t\t\t\t1. Go to \u0060Microsoft Entra ID\u0060\r\n\t\t\t\t\t2. Scroll down and select \u0060Company branding\u0060 under \u0060Manage\u0060 followed by the appropriate policy.\r\n\t\t\t\t\t\t* If no policy exists you will need to create one.\r\n\t\t\t\t\t3. Scroll to the bottom of the newly opened pane and ensure Show option to \u0060remain signed\u0060 in is set to \u0060No\u0060.\r\n\t\t\t\t\t4. Click \u0060Save\u0060.",
    "code": {
      "powerShell": null,
      "iac": null,
      "terraform": null,
      "other": null
    }
  },
  "recommendation": null,
  "references": [
    "https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/customize-branding"
  ],
  "compliance": [
    {
      "name": "CIS Microsoft 365 Foundations Benchmark",
      "version": "3.1.0",
      "reference": "5.1.2.5",
      "profile": "E3 Level 2"
    }
  ],
  "level": "low",
  "tags": [],
  "rule": {
    "path": "aad_company_branding",
    "subPath": null,
    "selectCondition": {},
    "query": [
      {
        "filter": [
          {
            "conditions": [
              [
                "isConfigured",
                "eq",
                "true"
              ],
              [
                "hideKeepMeSignedIn",
                "eq",
                "true"
              ]
            ],
            "operator": "and"
          }
        ]
      }
    ],
    "shouldExist": "true",
    "returnObject": {
      "policyName": "Hide Keep Me Signed-In option",
      "status": "Disabled"
    },
    "removeIfNotExists": null
  },
  "output": {
    "html": {
      "data": {
        "properties": {},
        "expandObject": null
      },
      "table": null,
      "decorate": [],
      "emphasis": [],
      "actions": {
        "objectData": {
          "properties": [
            "*"
          ],
          "expandObject": null,
          "limit": null
        },
        "showGoToButton": false,
        "showModalButton": false,
        "directLink": null
      }
    },
    "text": {
      "data": {
        "properties": {},
        "expandObject": null
      },
      "status": {
        "keyName": [],
        "message": "stay signed in is not disabled",
        "defaultMessage": null
      },
      "properties": {
        "resourceName": null,
        "resourceId": null,
        "resourceType": null
      },
      "onlyStatus": false
    }
  },
  "idSuffix": "eid_keep_me_sign_disabled",
  "notes": [],
  "categories": [],
  "immutableProperties": [],
  "id": "entraid_1154"
}