The JBoss server must be configured with Role Based Access Controls.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
highV-213498SRG-APP-000033-AS-000024JBOS-AS-000035SV-213498r1028281_rule2025-02-202
Description
By default, the JBoss server is not configured to utilize role based access controls (RBAC). RBAC provides the capability to restrict user access to their designated management role, thereby limiting access to only the JBoss functionality that they are supposed to have. Without RBAC, the JBoss server is not able to enforce authorized access according to role.
ℹ️ Check
Log on to the OS of the JBoss server with OS permissions that allow access to JBoss. Using the relevant OS commands and syntax, cd to the <JBOSS_HOME>/bin/ folder. Run the jboss-cli script. Connect to the server and authenticate. Run the following command: For standalone servers: "ls /core-service=management/access=authorization/" For managed domain installations, target the domain-management resource (the core management service for the entire domain): "ls /core-service=management/access=authorization/" If the "provider" attribute is not set to "rbac", this is a finding. (Default, the access control is "provider=simple")
✔️ Fix
Run the following command. <JBOSS_HOME>/bin/jboss-cli.sh -c -> connect -> cd /core-service=management/access-authorization :write-attribute(name=provider, value=rbac) Restart JBoss. Map users to roles by running the following command. Uppercase words are variables. role-mapping=ROLENAME/include=ALIAS:add(name-USERNAME, type=USER ROLE)