Bacterial infection has been linked to carcinogenesis, however, there is lack of knowledge of molecular mechanisms that associate infection with the development of cancer. We analyzed possible effects of the consumption of heat-killed E. coli O157:H7 cells or its cellular components, DNA, RNA, protein or lipopolysaccharides (LPS) on gene expression in naïve liver cells. Four week old mice were provided water supplemented with whole heat-killed bacteria or bacterial components for a two week period. One group of animals was sacrificed immediately, whereas another group was allowed to consume uncontaminated tap water for an additional two weeks, and liver samples were collected, post mortem. Liver cells responded to exposure of whole heat-killed bacteria and LPS with alteration in γH2AX levels and levels of proteins involved in proliferation, DNA methylation (MeCP2, DNMT1, DNMT3A and 3B) or DNA repair (APE1 and KU70) as well as with changes in the expression of genes involved in stress response, cell cycle control and bile acid biosynthesis. Other bacterial components analysed in this study did not lead to any significant changes in the tested molecular parameters. This study suggests that lipopolysaccharides are a major component of Gram-negative bacteria that induce molecular changes within naïve cells of the host.