Please do not report security vulnerabilities through public GitHub issues.
Instead, use GitHub's private vulnerability reporting:
- Go to the repository's Security tab
- Click Report a vulnerability
- Fill in the details (affected version, reproduction steps, impact)
This opens a private channel with the maintainer. You can also reach the maintainer through the contact links on their GitHub profile if you prefer.
- An acknowledgment as soon as possible (typically within a few days)
- An assessment of the report and, if confirmed, a remediation plan shared with you before any public disclosure
- Credit in the published security advisory (and a CVE where applicable), unless you prefer to remain anonymous
cdkd is intended for dev/test workflows and is early in development. Only the latest released version receives security fixes.
cdkd deploys AWS resources with the caller's AWS credentials and stores deployment state in the caller's own S3 bucket. Reports about the handling of sensitive data in state files, logs, or CLI output are in scope and welcome.
In scope:
- A secret (a
NoEchoparameter, a{{resolve:...}}dynamic reference, a value derived from one) reaching state, logs, CLI output, deployment events or an exports index in plaintext, except as listed below. - Terminal control characters or escape sequences from a template, resource, state or AWS value reaching the terminal unstripped.
- A secret or credential placed on a child process's command line, left on disk, or handed to a process or container that does not need it.
- cdkd itself passing an untrusted value to a shell or a child process, or resolving a file path outside where it belongs.
- A local emulator's authorizer or signature check accepting a request AWS would reject.
- Deletion or modification of a resource cdkd does not own, or deleting one it does own without the snapshot or retention the template asks for.
Out of scope:
- A value cdkd prints that would run if an operator copied the line into a shell. The values in question — logical ids, stack names, physical ids, state keys, AWS error text — come from the operator's own CDK app (which already runs arbitrary code at synth), the operator's own state bucket (whose writers can already make cdkd change any resource), or a principal in the account who can already change the deployed resources directly. The attack also needs the operator to paste a crafted line. The AWS CDK CLI prints the same values as-is.
- A value the template does not name through a
NoEchoparameter or a{{resolve:...}}reference, recorded in state as AWS returned it. This covers a secret an operator set out of band (for example over a placeholder literal) and one AWS returns in a field the template does not set. cdkd's drift baseline records what AWS holds, by design, sostate.jsonis sensitive by construction; see A value your template never references. This does not cover a credential a provider records inattributesso thatFn::GetAttcan read it (anAWS::IAM::AccessKey'sSecretAccessKey, a Cognito user pool client'sClientSecret), nor aNoEchoparameter's value, nor a custom resource'sNoEchoData; reports of those remain welcome. - A physical name derived from a secret, recorded in state and in what
carries it. A
{{resolve:...}}reference or aNoEchoparameter used in a name or other identifier property becomes the resource's identity. This covers that name in the resource'sphysicalId; the name, or an identifier embedding it, wherever a resolvedRef,Fn::GetAtt,Fn::Sub,Fn::ImportValue,Fn::GetStackOutputor a nested stack's parameter carries it into another resource's record, a stack output, the exports index or the rollback journal; anorphansrecord's physical id; thephysicalIdfield of a deployment event; and commands that print a stored record as it is, such ascdkd state showorcdkd events. CloudFormation uses the plaintext value in the primary identifier the same way and advises against it; see Security and Best Practices. This does not cover the resource's ownproperties,attributesorobservedProperties, a different secret read through the same resource, or the name unmasked in any other CLI output, logs or a deployment event's text; reports of those remain welcome.