Modeling the Internet of Things Under Attack: A G-network Approach | Synapse