In our efforts to combat policy drift (the tendency for security controls to degrade over time) it's important to monitor policies at all times and make sure we're aware of configurations that are no longer providing the intended level of protection.
Our Security Discovery Services often reveal authorization lists that are potentially not securing the objects they control. These are authorization lists where *PUBLIC authority is not *EXCLUDE. We are particularly interested in *PUBLIC authority that is *CHANGE or *ALL - these authorization lists are not providing any security, leaving their objects open to all users.
IBM i SQL services provide the fastest and easiest way to identify this vulnerability.
Run this query to find authorization lists with *PUBLIC authority that is not *EXCLUDE or *USE:
SELECT authorization_list, authorization_name, object_authority,
authorization_list_management owner, text_description
FROM qsys2.authorization_list_user_info
WHERE authorization_name = '*PUBLIC'
AND object_authority NOT IN ('*EXCLUDE', '*USE');
If the query returns results, then you have a little more digging to do...
Use this SQL to list affected IBM i objects:
WITH objs AS (
SELECT autlinfo.authorization_list, autluserinfo.object_authority AS autl_public_authority, system_object_schema,
system_object_name, system_object_type, object_attribute
FROM qsys2.authorization_list_info autlinfo
JOIN qsys2.authorization_list_user_info autluserinfo
ON autlinfo.authorization_list = autluserinfo.authorization_list
WHERE autluserinfo.authorization_name = '*PUBLIC'
AND autluserinfo.object_authority NOT IN ('*EXCLUDE', '*USE')
AND path_name IS null )
SELECT *
FROM objs, LATERAL (
SELECT last_used_timestamp, last_used_object, days_used_count
FROM TABLE ( qsys2.object_statistics( object_schema => objs.system_object_schema,
objtypelist => objs.system_object_type,
object_name => objs.system_object_name) ) )
ORDER BY authorization_list, system_object_schema, system_object_name;
Also look for affected IFS objects:
WITH ifsobjs AS (
SELECT autlinfo.authorization_list, autluserinfo.object_authority AS autl_public_authority, path_name
FROM qsys2.authorization_list_info autlinfo
JOIN qsys2.authorization_list_user_info autluserinfo
ON autlinfo.authorization_list = autluserinfo.authorization_list
WHERE autluserinfo.authorization_name = '*PUBLIC'
AND autluserinfo.object_authority NOT IN ('*EXCLUDE', '*USE')
AND path_name IS NOT null
ORDER BY autlinfo.authorization_list, system_object_schema, system_object_name)
SELECT * FROM ifsobjs, LATERAL (
SELECT object_type, access_timestamp, days_used_count
FROM TABLE ( qsys2.ifs_object_statistics(start_path_name => ifsobjs.path_name, subtree_directories => 'NO') ) );
With these three queries, you can locate configuration vulnerabilities from unsecured authorization lists and determine the impact down to the object level.
Your goal is to reduce all authority list authorities down to *EXCLUDE or *USE. You can use object auditing and authority collection to investigate the impact of authority changes before making any changes that could disrupt a critical application.
iSecMap software actively monitors security policy and will report on unsecured authorization list.
Security Discovery Services will reveal all your system's hidden vulnerabilities including unsecured authorization lists.
Our team of security experts can help remediate unsecured data with minimal impact to your business.
RELATED POSTS
BROWSE KISCO U
PRODUCT CONTENT