Skip to content

Cleanup function can delete Lambda functions not created by CredKing #9

@venominfosec

Description

@venominfosec

Hello. The way that the clean_up function is currently set up allows for Lambda functions that are not created by CredKing to be deleted. This occurred in my cloud environment; CredKing was the tool that deleted these functions, confirmed via CloudTrail.

Instead of calling list_functions, I would suggest passing the 'arns' list defined on line 64 in credking.py to the clean_up function and then simply deleting the ARNs that you know were created by CredKing. This would prevent other Lambda functions that were not created by CredKing from being deleted during the clean up process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions