We present simulation results for a simple lattice gas cellular automata model of passivation. The lattice sites representing the corrosion product are produced at the corroding surface and diffuse executing a random walk. Asymmetric simple exclusion rules of the random walk account for an attractive potential between the corrosion product particles. The particles can aggregate and when sufficiently numerous form a compact phase on the corroding surface. The model predicts a transition from the active to passive state when increasing the reactivity of the surface. The transition is characterized by a sudden increase in the surface coverage of the corrosion product interpreted as a passive layer formation. The layer blocks contact of the metal surface with the environment and reduces the corrosion rate. The model reproduces the known paradox of passivity—the surface must be reactive enough for the layer to form. A further increase in the bare reactivity reduces largely the observed reaction rate. The simulations yield information on the morphological changes of the surface layer before and after the transition. In terms of the corrosion current, the active state is described by the current increase with the polarizing potential according to the Tafel law while in the passive state the current is independent of the anodic potential. Our simple model reproduces principal features of passivation.