diff --git a/README.md b/README.md index 0fe3e4c..ed126bb 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ Open-Sourced community contributed and owned repository for Instance Scan Defini ## Category: Manageability +### Check any Assets Assigned to any Inactive users +This Check helps to identify and manage assets assigned to inactive users, ensuring that CMDB remains accurate and up to date. + ### Avoid using javascript "document" object in Portal Always avoid using native js "document" object for DOM manipulation in service portal. Instead we should use AngularJS equivalent capabilities to achieve the same. diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt b/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt index b764fd1..c07bac9 100644 --- a/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt @@ -1 +1 @@ -vdzK57T2bhYH4R3tr5_N6r8DKdLmhtc5_AMSqsrGL2lDDQtzZxnmirx38up8Jm2-CI3CDMpa7Udq0cV06a0WfIeCBFsws8y-joYHTxiD-lAbbpy7LKyBy-szR_kO4mFszdz7Kikp9bbMUwWTIPbtRQzbapfu6HH7iEFepuUdA9SOlwPJAAaBRxCUQeo8Hg9Hxb7ubHmvx87l7IwoGN2ezq07g2EMDh3wkpLdXVXdMoPd-Hf9g8X-V4ENLaGI-5wQnvXgX_w_shWoupz_WdTA3ir94Eh3Nu2jiM29wNQDNrlsTvslryId4vq8M8ME13Vi7UpuHw6Ec-ooT6OXdBMkvgsVAtCARdy79UbAgT_p9E3KL3rbJPozp-7I8wOf3n1WETwJkDsAUMzBp3LWF8_BqfxFeYFCEQV3l3xC8ic2ZQn_98i9fpgURFU9Ec2BEGbbMfpm7KehrFl0bNOVDTDEWIETdt80lvfR1i0-8Yk1vHWvLdB94dHoPw1a77oWht1HxEMkNzE1m38ANVQVZq2-pbVdIiAYCLeRBdd5i_LrNLpF7iCHBpAawuxX5BQIVKBW3WNTPhWUdV9_a1_394CDBmYswn8XiQSx0Vi0hfjuuMp9J9sQxOVVq2MFyWZiDvhIX2CJutq8xn27shQc7Y5xeZN5SVosFrv3irWYkzJuKoU \ No newline at end of file +3vRCnweUcMbf_DPELcog4hdLlFlUbPwJctmg_kkm78cpLkr1l-LB51QDjkIdHC0JWSvkCYxwpZyWgyDojQiv-FLkDdCBn5m0RVPQtqTZDOJE47zCZvuiUeMhVMbmUc-odQzBuA8JDllUoKm5txGTn6wQyQvL1LOrGDH1zPaSa4djRGGVW1BPmA3cyv6UlgUQAPTT4heryzcdtZKTOwTyH-vVQ1hv1PUVlUYvFFxuq6NAyfv-Uq9kqipD_-UA5hWBPHdBAuNexFGXyjbw5AeeSXwEtkYd7cMslV3Yc90G1zU_G8WZJJVvrsfsvdit5O7wGFhA0j1vMF96XpPzIvxm7kk21hCzStPsVqOrALN4_v7N7o3JYTRj2wJVd0K-ZojWfG9PIgnx55szcP-bi2ykaIPCmKgOh9FWH8gDwi061zCtxnxu9glwRGlLd_huEcYQuft-rsxCrIgIqKvJzrGQ0ofPVZj53Uqq7Sl602QeuH5FZRa5cjJFtF12JDbNAs3ImkMVsJGdRwbEu8CSKJKp7gRgu4R-shkvBQjwL8moYIXbglmTizuzV3lBg0fdbJOcMCnQsmCGvFB7dxleArTKSr8PaHWWH5RIQQM1Kt3m0a7RJVZjr5eP7neBin2VQUEcUXu418te7PMem7KrKlAoTh8uEEdT4swGgYybwjv10cs \ No newline at end of file diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml new file mode 100644 index 0000000..57ea32e --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml @@ -0,0 +1,53 @@ + + + true + upgradability + Use Logging Levels: Instead of gs.log(), consider using more appropriate logging levels, such as: +gs.info() for informational messages. +gs.warn() for warnings that don’t break functionality but may need attention. +gs.error() for logging errors that require investigation. + + scan_finding + Avoid usage of gs.log() + 3 + + + 100 + 0 + 1 + + Avoid usage of gs.log() in prod + scan_script_only_check + admin + 2024-10-18 02:30:31 + 6b832a7953d1d61000b51901a0490e24 + 0 + Avoid usage of gs.log() + ca8467c41b9abc10ce0f62c3b24bcbaa + + ca8467c41b9abc10ce0f62c3b24bcbaa + scan_script_only_check_6b832a7953d1d61000b51901a0490e24 + admin + 2024-10-18 02:30:31 + + + + 6b832a7953d1d61000b51901a0490e24 + admin + 2024-10-18 02:30:31 + 07a5a23953d1d61000b51901a0490e95 + 0 + admin + 2024-10-18 02:30:31 + scan_script_only_check
+ true +
+
diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_25a5c4b65311121000b51901a0490e4f.xml b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_25a5c4b65311121000b51901a0490e4f.xml new file mode 100644 index 0000000..70ae33e --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_25a5c4b65311121000b51901a0490e4f.xml @@ -0,0 +1,41 @@ + + + true + false + upgradability + owner.active=false^EQ + + + We should ensure that inactive users are removed from being assigned as Catalog item owners. + + scan_finding + Inactive User Check : Catalog Iem + 2 + + + 100 + 0 + 1 + + Check Catalog Item owner is Active user + scan_table_check + admin + 2024-10-20 17:30:07 + 25a5c4b65311121000b51901a0490e4f + 0 + Inactive User Check : Catalog Iem + ca8467c41b9abc10ce0f62c3b24bcbaa + + ca8467c41b9abc10ce0f62c3b24bcbaa + scan_table_check_25a5c4b65311121000b51901a0490e4f + admin + 2024-10-20 17:30:07 + sc_cat_item
+ false +
+ +
diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_6f14fe555359161000b51901a0490ef9.xml b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_6f14fe555359161000b51901a0490ef9.xml new file mode 100644 index 0000000..9a7db28 --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_6f14fe555359161000b51901a0490ef9.xml @@ -0,0 +1,54 @@ + + + true + true + manageability + name=sn_atf.runner^value=false^EQ + + + + + + scan_finding + ATF usage instance + 2 + + + 100 + 0 + 1 + + Checking ATFs are using in Non production instances. + scan_table_check + admin + 2024-10-16 14:19:07 + 6f14fe555359161000b51901a0490ef9 + 0 + ATF usage instance + ca8467c41b9abc10ce0f62c3b24bcbaa + + ca8467c41b9abc10ce0f62c3b24bcbaa + scan_table_check_6f14fe555359161000b51901a0490ef9 + admin + 2024-10-16 14:19:07 + sys_properties
+ false +
+ + + 6f14fe555359161000b51901a0490ef9 + admin + 2024-10-16 14:19:06 + 57a4ba915359161000b51901a0490e13 + 0 + admin + 2024-10-16 14:19:06 + scan_table_check
+ true +
+
diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_8979003a5311121000b51901a0490e86.xml b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_8979003a5311121000b51901a0490e86.xml new file mode 100644 index 0000000..51806f4 --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_8979003a5311121000b51901a0490e86.xml @@ -0,0 +1,41 @@ + + + true + false + manageability + owned_by.active=false^EQ + + + We should ensure that inactive users are removed from being assigned as Service owners. + + scan_finding + Inactive User Check : Service Owner + 2 + + + 100 + 0 + 1 + + Check inactive user as Service Owner + scan_table_check + admin + 2024-10-20 17:44:06 + 8979003a5311121000b51901a0490e86 + 0 + Inactive User Check : Service Owner + ca8467c41b9abc10ce0f62c3b24bcbaa + + ca8467c41b9abc10ce0f62c3b24bcbaa + scan_table_check_8979003a5311121000b51901a0490e86 + admin + 2024-10-20 17:44:06 + cmdb_ci_service
+ false +
+ +
diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_c15bc4f65311121000b51901a0490edb.xml b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_c15bc4f65311121000b51901a0490edb.xml new file mode 100644 index 0000000..ad7f46f --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_table_check_c15bc4f65311121000b51901a0490edb.xml @@ -0,0 +1,41 @@ + + + true + false + manageability + assigned_to.active=false^EQ + + + Check for inactive users in Asset Management and update the Configuration Management Database (CMDB) to reflect any changes in asset ownership. + + scan_finding + Inactive User Check : Asset management + 2 + + + 100 + 0 + 1 + + Check any assets assigned to any inactive user + scan_table_check + admin + 2024-10-20 17:52:35 + c15bc4f65311121000b51901a0490edb + 0 + Inactive User Check : Asset management + ca8467c41b9abc10ce0f62c3b24bcbaa + + ca8467c41b9abc10ce0f62c3b24bcbaa + scan_table_check_c15bc4f65311121000b51901a0490edb + admin + 2024-10-20 17:52:35 + alm_asset
+ false +
+ +