Text this: Securing Fog-assisted IoT: An Adaptable and Efficient Threat Identification Approach