turbot/steampipe-mod-ibm-compliance

Control: 1.11 Ensure contact phone number is valid

Description

A valid phone number should be on record with IBM Cloud in the event that IBM needs to contact you regarding your IBM Cloud account.

Remediation

From Console

  1. Log in to IBM Cloud.
  2. Click Avatar icon > Profile.
  3. Click the Edit link in the Contact information section
  4. Update your Primary and Alternate phone numbers.

Usage

Run the control in your terminal:

powerpipe control run ibm_compliance.control.cis_v100_1_11

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run ibm_compliance.control.cis_v100_1_11 --share

SQL

This control uses a named query:

select
iam_id as resource,
case
when phonenumber is not null and alt_phonenumber != '' then 'ok'
else 'alarm'
end as status,
case
when phonenumber is not null and alt_phonenumber != '' then first_name || ' ' || last_name || ' has phone number configured.'
else first_name || ' ' || last_name || ' has no phone number configured.'
end as reason,
account_id
from
ibm_iam_user;

Tags