Skip to content

Fixed bugs in aws outbound-assumed-roles#135

Open
toktarbayevaaiymgul wants to merge 1 commit into
BishopFox:mainfrom
toktarbayevaaiymgul:main
Open

Fixed bugs in aws outbound-assumed-roles#135
toktarbayevaaiymgul wants to merge 1 commit into
BishopFox:mainfrom
toktarbayevaaiymgul:main

Conversation

@toktarbayevaaiymgul

Copy link
Copy Markdown

Card

Fixed bugs in aws outbound-assumed-roles

Details

This PR involves 4 related bug fixes, identified when cloudtrail:LookupEvents were failing with AWS error "InvalidTimeRangeException: The start time precedes the end time" after running "cloudfox aws outbound-assumed-roles"

  1. Fixed incorrect startTime calculation in /aws/outbound-assumed-roles.go (both locations) to calculate absolutel value of m.Days to properly handle potential negative numbers

  2. Changed -7 to 7 when building OutboundAssumedRolesCommand in /cli/aws.go

  3. Uncommented LookupAttributes for "BatchGetImage" in cloudtrail:LookupEvents call in getCrossAccountBatchGetImageEntriesPerRegion method (assuming it was previously commented when debugging startTime/endTime issue now fixed in Welcome to cloudfox Discussions! #1)

  4. Uncommented getAssumeRoleLogEntriesPerRegion method call in executeChecks method (assuming it was previously commented when debugging startTime/endTime issue now fixed in Welcome to cloudfox Discussions! #1)

Confirmed both AssumedRole and BatchGetImage methods are now running without issue when executing "cloudfox aws outbound-assumed-roles"

@sethsec

sethsec commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

@jbarciabf / @bishopfaure - I have confirmed that this works as expected now. Please merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants