QuestionQ58

VerifiedInfrastructure Security

A company lets users download its mobile app to their phones. The MQTT-based app connects to AWS IoT Core to subscribe to specific client-related topics.

Recently, the company found that malicious attackers have been attempting to place a Trojan horse on legitimate mobile phones. The Trojan horse impersonates the authentic application and uses a client ID containing injected special characters to access topics beyond the client’s privilege scope.

Which combination of actions should the company take to prevent this threat?

Choose two
Explanation

AWS IoT Core policy variables substitute the MQTT client ID directly. If ${iot:ClientId} is used for topic authorization, an attacker can connect with MQTT wildcard characters such as + and obtain access beyond the intended topic scope. Restricting iot:Connect to client/${iot:Connection.Thing.ThingName} binds the permitted client ID to the registered IoT thing associated with the authenticating principal. Using that IoT thing name as the application client ID enforces the binding.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!