The god of abrahamic religions is typically said to be omnipotent an omniscient. However, how could such a god rule out solipsism, simulation theory and things like that? Consider the following scenario: there exists a being, which we will call "super-god", which is really powerful. This being then creates God, and tricks him into believing that he is eternal, omnipotent and omniscient. Super-god is also powerful enough to hide itself from God. It seems to me that, to God, this scenario would be, by definition, indistinguishable from the scenario where God is actually omnipotent and omniscient. But, this means an omniscient being wouldn't be able to know that he is actually omniscient... which means that omniscience is logically impossible. This also proves that an omnipotent being lacks the power of being able to know that he is omnipotent (and omniscient). And it also means that, if a god claims to be omnipotent and omniscient, then he is either being dishonest or hasn't realized this objection that I just made.
You could say "well God is supernatural, you can't really know details about him, surely there's a way in which he can know that he's omnipotent and omniscient, you just don't know that way". But, if you accept that, then I can just as easily say "well, super-god is also supernatural, and surely it could trick God into believing that he's omnipotent and omniscient in such a way that it is completely indistinguishable from God actually being omnipotent and omniscient, even if I don't know that way". In other words, appealing to mystery doesn't solve the problem.
Is there a flaw in this whole reasoning? I feel like there has to be, because otherwise this is kind of a dealbreaker for the traditional notion of god as omnipotent and omniscient, and I can't believe I'm the first to think about this.