sourceIPAddress: Internal là như nào?

sourceIPAddress: Internal là như nào?

Share Everywhere

Table of contents

Câu hỏi:

Recently when I look at CloudTrail logs, I find that there are some logs which have “sourceIPAddress”: “AWS Internal”, and some others is “sourceIPAddress”: “<IP address>”, even though all of those actions were conducted in the AWS management console.

I have read the docs:

https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html

and understand that there are 2 condition that sourceIPAddress become Internal:

  • if the request was made with a proxy client (such as the AWS Management Console)
  • and sessionCredentialFromConsole is present with a value of true.

If the request was made with a proxy client, the tlsDetails is not shown.

My question is:

  • Is there any services list that if you make request in those service console, the sourceIPAddress will be Internal?
  • Why when I describle, for eg, Redshift cluster in the Management Console, the sourceIPAddress is internal but when I list bucket in AWS console, the request show IP and tlsDeail? (i.e. In which case the request will be made with a proxy client, in what case not? – assumed that all request made using AWS Management Console)

Trả lời;

Hello,

Warm greetings from AWS!

Thank you for getting in touch with us at AWS Premium Support. I am Amit, and I will be assisting you on this case today.

From the case notes, I understand you have some queries about “sourceIPAddress”: “AWS Internal” field, present in few of your CloudTrail logs. Please allow me to answer them one by one.

As you have correctly pointed out that when the value of sourceIPAddress is replaced by AWS Internal and the value of userAgent is replaced by AWS Internal, usually the calls are made with a proxy client (such as the AWS Management Console), and sessionCredentialFromConsole is present with a value of true.

A “service list” that categorises the services for which the “sourceIPAddress” would be “AWS Internal” does not exist. Please note that each service has a unique architecture, and behaves accordingly – some services are dependent on other services in the backend, and therefore, “AWS Internal” is recorded in SourceIPAddress and userAgent when the AWS services are making requests on your behalf to other AWS resources.

For example: Suppose an IAM user ‘arn:aws:iam::xxxx:user/abc’ has logged into the AWS Management Console and is trying to open EC2 service console. As EC2 console has a list of LoadBalancers, Volumes, Instances and Key pairs etc., so in order to display these details, EC2 service in the backend makes these describe API calls on behalf of the user and hence, for these calls, the SourceIPAddress and userAgent will be marked as ‘AWS Internal’.

You could also refer to:

https://docs.aws.amazon.com/awscloudtrail/latest/userguide/non-api-aws-service-events.html

Regarding your second query, that when you call “ListBuckets” you get an IP address in your CloudTrail logs, whereas when “DescribeClusters” API call is made, the “sourceIPAddress” is ”AWS Internal”.

Please note there is an exception here: when you make “ListBuckets” API call – to get a list of all buckets owned by the authenticated sender of the request, the response for this call involves HTTP or HTTPS (hence the “tlsDetails” is present in logs). Since it is an HTTP based request-response[1], the browser is involved in making the request, and therefore, the IP of the browser is captured.

For “DescribeClusters” API call[2], response is not HTTP based; as a result the request is passed from AWS Management Console(proxy) and the “sourceIPAddress” is ”AWS Internal”.

As stated above, each service has a unique design; therefore, it is not possible to know which API calls will use TLS without checking the individual documentation for the respective API.

To summarise:

  1. If an AWS service is dependent on another AWS service, the calls made by first service to second service – in order to function properly, will be marked internal.
  2. Even if you call certain API from AWS Management Console, if their response involves HTTP or HTTPS, the IP address of the browser will be recorded in the logs. For all other API calls, where “tlsDetails” field is not present, “sourceIPAddress” is ”AWS Internal”.

I trust you will find this information helpful. If you have any questions or concerns, please feel free to reach out to me. I will be more than happy to assist.

Have a great day and stay safe!

References: [1] ListBuckets —

https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html#API_ListBuckets_ResponseSyntax

[2] DescribeClusters —

https://docs.aws.amazon.com/redshift/latest/APIReference/API_DescribeClusters.html#API_DescribeClusters_Example_1

We value your feedback. Please share your experience by rating this correspondence using the AWS Support Center link at the end of this correspondence. Each correspondence can also be rated by selecting the stars in top right corner of each correspondence within the AWS Support Center.

Best regards, Amit M. Amazon Web Services

Bạn thấy bài viết này như thế nào?
0 reactions

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
Image CAPTCHA
Enter the characters shown in the image.

Bài viết liên quan

Lộ trình học NodeJS Back-End

Lộ trình học NodeJS Back-End

Back-End cũng là một trong những hướng mà nhiều bạn theo đuổi. Vì vậy, mình chia sẻ đến bạn một lộ trình nhỏ về back-end dành cho người mới nhé!
Cùng mình đập hộp xem bên trong có gì nhé.

Câu chuyện học AWS nên học từ đâu và trở thành AWS Community Builder

Sau 2 tháng đăng ký làm thành viên của AWS Community Builder thì hôm nay mình đã nhận được quà của AWS từ Singapore.
Ngoài ra còn có rất nhiều câu chuyện và chia sẻ kỹ thuật hữu ích nữa

Ngoài ra còn có rất nhiều câu chuyện và chia sẻ kỹ thuật hữu ích nữa

Năm nay mình có dịp trở lại với Singapore, một đất nước rất xanh, sạch, và đẹp, ở đâu cũng thấy mọi người tập thể dục ngoài trời
Democratize analytics and machine learning with no-code AWS services

Democratize analytics and machine learning with no-code AWS services

Access to all data for fast analytics at scale is key for 360-degree projects involving data engineers
Train ML models quickly and cost-effectively with Amazon SageMaker

Train ML models quickly and cost-effectively with Amazon SageMaker

Training machine learning models at scale often requires significant investments