Fog computing is a model that processes and stores data closer to end users, at the edge of the network, rather than keeping all data in the cloud. It aims to extend cloud computing by providing greater security and faster analytics by keeping data closer to its source. Fog computing monitors data access in the cloud and can detect abnormal patterns to help minimize insider attacks. While it provides some advantages over cloud, fog computing also introduces more complexity in detecting attacks and affected users or files.