Obfuscating a .NET AWS Lambda Function Without Breaking the Handler String
DEV Community
Obfuscating a .NET AWS Lambda Function Without Breaking the Handler String
AWS Lambda''s managed .NET runtime finds your code through a handler string of the form Assembly::Namespace.Type::Method, which it resolves by reflection at every cold start. Obfuscate after the build and renaming moves the handler type or method out from under that string — the assembly is valid, but Lambda fails to resolve the entry point and the invocation errors before your code runs. This post explains where the handler string lives, which symbols the managed runtime and the Lambda serializer resolve by name, how to pin exactly those with a Nebula.NET keep-list while renaming everything else, and how to fold nebula protect into dotnet lambda package.
0 comments
No comments yet.