Gondor didn't really word his question very well, so let me re-word it so the rest can understand.
He's not asking how many attack buildings you need to have to be considered a hansel or hybrid (even though it looks like it).
What he means is, at the moment only players with at least 25% of their buildings as spy buildings can attack a hansel (1 attack building) with no gold. He wants to figure out how many attack buildings a hybrid can have until this rule is no longer in place.
I currenty have 5 attack buildings, rest spy, and still cannot be hit by an attack build.
If I had to make a GUESS, I'd maybe say you'd need 25% of your build to be attack buildings to be able to be hit by an attack build. This is not proven, it is just a hypothesis.