turbot/steampipe-mod-aws-compliance

Control: Transfer Family servers should not use FTP protocol for endpoint connection

Description

This control checks whether an AWS Transfer Family server uses a protocol other than FTP for endpoint connection. The control fails if the server uses FTP protocol for a client to connect to the server's endpoint.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.transfer_server_no_ftp_protocol

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.transfer_server_no_ftp_protocol --share

SQL

This control uses a named query:

select
arn as resource,
case
when protocols @> '[ "FTP" ]' then 'alarm'
else 'ok'
end as status,
case
when protocols @> '[ "FTP" ]' then title || ' uses FTP protocol for endpoint connection.'
else title || ' does not uses FTP protocol for endpoint connection.'
end as reason
, region, account_id
from
aws_transfer_server;

Tags