104 releases (59 stable)

new 1.59.1 Dec 12, 2024
1.57.0 Nov 6, 2024
1.41.0 Jul 22, 2024
1.21.0 Mar 28, 2024
0.0.0 May 8, 2021

#2445 in Network programming

Download history 56/week @ 2024-08-23 152/week @ 2024-08-30 253/week @ 2024-09-06 300/week @ 2024-09-13 215/week @ 2024-09-20 129/week @ 2024-09-27 187/week @ 2024-10-04 427/week @ 2024-10-11 46/week @ 2024-10-18 157/week @ 2024-10-25 267/week @ 2024-11-01 75/week @ 2024-11-08 26/week @ 2024-11-15 20/week @ 2024-11-22 838/week @ 2024-11-29 944/week @ 2024-12-06

1,829 downloads per month

Apache-2.0

6.5MB
99K SLoC

aws-sdk-guardduty

Amazon GuardDuty is a continuous security monitoring service that analyzes and processes the following foundational data sources - VPC flow logs, Amazon Web Services CloudTrail management event logs, CloudTrail S3 data event logs, EKS audit logs, DNS logs, Amazon EBS volume data, runtime activity belonging to container workloads, such as Amazon EKS, Amazon ECS (including Amazon Web Services Fargate), and Amazon EC2 instances. It uses threat intelligence feeds, such as lists of malicious IPs and domains, and machine learning to identify unexpected, potentially unauthorized, and malicious activity within your Amazon Web Services environment. This can include issues like escalations of privileges, uses of exposed credentials, or communication with malicious IPs, domains, or presence of malware on your Amazon EC2 instances and container workloads. For example, GuardDuty can detect compromised EC2 instances and container workloads serving malware, or mining bitcoin.

GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise, such as unauthorized infrastructure deployments like EC2 instances deployed in a Region that has never been used, or unusual API calls like a password policy change to reduce password strength.

GuardDuty informs you about the status of your Amazon Web Services environment by producing security findings that you can view in the GuardDuty console or through Amazon EventBridge. For more information, see the _ Amazon GuardDuty User Guide _.

Getting Started

Examples are available for many services and operations, check out the examples folder in GitHub.

The SDK provides one crate per AWS service. You must add Tokio as a dependency within your Rust project to execute asynchronous code. To add aws-sdk-guardduty to your project, add the following to your Cargo.toml file:

[dependencies]
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
aws-sdk-guardduty = "1.59.1"
tokio = { version = "1", features = ["full"] }

Then in code, a client can be created with the following:

use aws_sdk_guardduty as guardduty;

#[::tokio::main]
async fn main() -> Result<(), guardduty::Error> {
    let config = aws_config::load_from_env().await;
    let client = aws_sdk_guardduty::Client::new(&config);

    // ... make some calls with the client

    Ok(())
}

See the client documentation for information on what calls can be made, and the inputs and outputs for each of those calls.

Using the SDK

Until the SDK is released, we will be adding information about using the SDK to the Developer Guide. Feel free to suggest additional sections for the guide by opening an issue and describing what you are trying to do.

Getting Help

License

This project is licensed under the Apache-2.0 License.

Dependencies

~8–20MB
~286K SLoC