{"action":"created","issue":{"url":"https://api.github.com/repos/Alfresco/aws-cis-security-benchmark/issues/9","repository_url":"https://api.github.com/repos/Alfresco/aws-cis-security-benchmark","labels_url":"https://api.github.com/repos/Alfresco/aws-cis-security-benchmark/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Alfresco/aws-cis-security-benchmark/issues/9/comments","events_url":"https://api.github.com/repos/Alfresco/aws-cis-security-benchmark/issues/9/events","html_url":"https://github.com/Alfresco/aws-cis-security-benchmark/issues/9","id":178176807,"number":9,"title":"line 417: [: user/XXXX.XXXX: unary operator expected","user":{"login":"virtualjj","id":10323889,"avatar_url":"https://avatars.githubusercontent.com/u/10323889?v=3","gravatar_id":"","url":"https://api.github.com/users/virtualjj","html_url":"https://github.com/virtualjj","followers_url":"https://api.github.com/users/virtualjj/followers","following_url":"https://api.github.com/users/virtualjj/following{/other_user}","gists_url":"https://api.github.com/users/virtualjj/gists{/gist_id}","starred_url":"https://api.github.com/users/virtualjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtualjj/subscriptions","organizations_url":"https://api.github.com/users/virtualjj/orgs","repos_url":"https://api.github.com/users/virtualjj/repos","events_url":"https://api.github.com/users/virtualjj/events{/privacy}","received_events_url":"https://api.github.com/users/virtualjj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-20T20:51:10Z","updated_at":"2016-09-21T15:45:47Z","closed_at":null,"body":"I get the following error for check113.\r\n\r\nline 417: [: user/XXXX.XXXX: unary operator expected\r\n\r\n![image](https://cloud.githubusercontent.com/assets/10323889/18687845/dad5f094-7fbc-11e6-84ec-58be73cd74cf.png)\r\n\r\nResolved the error by replacing line 417 with:\r\n\r\n`if [[ $COMMAND113 ]]; then`\r\n\r\n![image](https://cloud.githubusercontent.com/assets/10323889/18687947/51608c2e-7fbd-11e6-9d6a-56f4b81282a8.png)\r\n\r\nHowever I think this is a limitation of the AWS CLI because there doesn't appear to be a way to determine whether or not the MFA device is actually hardware or not using CIS's recommended Audit check of **aws iam get-account-summary | grep AccountMFAEnabled**. In my case my root account has a virtual MFA assigned, not hardware but the status is 1.\r\n\r\nhttps://github.com/Alfresco/aws-cis-security-benchmark/blob/master/prowler#L415 is querying VirtualMFADevices but I don't see a way to query anything hardware related with the subcommand list-mfa-devices. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Alfresco/aws-cis-security-benchmark/issues/comments/248653635","html_url":"https://github.com/Alfresco/aws-cis-security-benchmark/issues/9#issuecomment-248653635","issue_url":"https://api.github.com/repos/Alfresco/aws-cis-security-benchmark/issues/9","id":248653635,"user":{"login":"virtualjj","id":10323889,"avatar_url":"https://avatars.githubusercontent.com/u/10323889?v=3","gravatar_id":"","url":"https://api.github.com/users/virtualjj","html_url":"https://github.com/virtualjj","followers_url":"https://api.github.com/users/virtualjj/followers","following_url":"https://api.github.com/users/virtualjj/following{/other_user}","gists_url":"https://api.github.com/users/virtualjj/gists{/gist_id}","starred_url":"https://api.github.com/users/virtualjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtualjj/subscriptions","organizations_url":"https://api.github.com/users/virtualjj/orgs","repos_url":"https://api.github.com/users/virtualjj/repos","events_url":"https://api.github.com/users/virtualjj/events{/privacy}","received_events_url":"https://api.github.com/users/virtualjj/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T15:45:47Z","updated_at":"2016-09-21T15:45:47Z","body":"Awesome and agreed - thanks again!"}}
{"actor":{"display_login":"virtualjj"}}