You can attack monsters, objects, NPCs, and other players. Right click the target, then Attack.
A yellow box means that monster is attacking you. A red box means you are attacking it. Damaged monsters, players, and objects show an HP bar above the tile.
Your defense is split across hits in the same attack round. Being surrounded is dangerous. If you have 10 defense, the first hits use 10. The third hit uses 10 / 2 = 5. The fourth uses 10 / 3, rounded up.
Pods cannot attack other players' ships. Pods are free. If you lose yours, you get another. You cannot attack or be attacked on a spaceport tile.
Planets and stations can have AI rules. On Azure planets, Cadian protects players and his property. If a rule is being enforced, an AI is spending energy to do it.