When you're connecting from an international flight to a domestic one, you'll always have to exit and reenter security as you'll need to go through customs and immigration (unless you have gone through preclearance aboard, which is rare).
Do I need a transit visa if I have a connecting flight in Frankfurt?
The vast majority of foreign travelers benefit from the “transit privilege” – if during a stopover at a German airport, you do not leave the International Airport Area and if the destination is not in a Schengen country, you do not need a transit visa.
Do you have to go through security for international layover?
For domestic-to-domestic layovers, you normally won't have to go through security again during your layover. However, for all international layovers, you will normally have to go through security again, but this will depend on individual airport policy.