The latest Pathfinder Online tome has been published on the official site. This time, the dev team takes aim at raiding and lays out in precise detail how that will come to fruition in the game.
Attacking an outpost will make you and your group hostile to the members of that outpost's managing company (as well as the owners of the controlling PoI if that company has subcontracted outpost management). That means that they can attempt to stop you without penalties. Raiding does not automatically make you hostile to every member of the settlement that owns that territory, however.
To enable the whole membership to come to the aid of its outposts, a settlement might choose to make raiding a crime in its territory. In that case, initiating a raid will give all raiders the Criminal flag (making them more chaotic and making them sanctioned targets for anyone). However, like all crimes, Criminal flags from raiding may have a detrimental effect on the settlement; even lawful settlements may have to consider whether making raiding a crime risks that their enemies will steal their resources and increase their corruption from frequent raiding. Additionally, the criminal flag is always overcome by active feuds or wars, so raiding will be a legitimate action if you first declare a feud or war on the settlement, PoI, or management company associated with your target outpost.
Read more on the Pathfinder Online site.